SiGraph: sulcal graphs


global.h
Go to the documentation of this file.
1
2
3
4#ifndef SI_GLOBAL_GLOBAL_H
5#define SI_GLOBAL_GLOBAL_H
6
7
8#include <string>
9
10
11namespace sigraph
12{
13
17 class Si
18 {
19 public:
20 Si();
21 ~Si();
22
23 std::string basePath() const { return( _basePath ); }
24 std::string labelsTranslPath() const { return( _labelsTranslPath ); }
25 void setLabelsTranslPath( const std::string & filename )
26 { _labelsTranslPath = filename; }
27 static const std::string & version();
28 static const std::string & shortVersion();
29
30 private:
31 static std::string getBasePath();
32 std::string _basePath;
33 std::string _labelsTranslPath;
34 };
35
36
38 Si & si();
39
40}
41
42#endif
43
44
classe fourre-tout, juste pour grouper des variables et des fonctions globales
Definition global.h:18
static const std::string & shortVersion()
std::string basePath() const
Definition global.h:23
static const std::string & version()
void setLabelsTranslPath(const std::string &filename)
Definition global.h:25
std::string labelsTranslPath() const
Definition global.h:24
Si & si()
Accès au singleton Si.