Definition at line 9 of file Path.h.
Public Member Functions | |
| std::string | getPosixName () const |
| std::string | getNative () const |
| bool | exists () const |
Static Public Member Functions | |
| static Path | dataReadPath (const std::string &file) |
| static Path | dataWritePath (const std::string &file) |
| static Path | dataSystemPath (const std::string &file) |
| Return path to system file. | |
| static Path | dataUserPath (const std::string &file) |
| Return path to user file. | |
|
|
Definition at line 66 of file Path.cpp. 00067 {
00068 return dataPath(file, false);
00069 }
|
|
|
Return path to system file. Path does not need to exist. Definition at line 82 of file Path.cpp. 00083 {
00084 std::string systemdir = OptionAgent::agent()->getParam("systemdir");
00085 return Path(FsPath::join(systemdir, file));
00086 }
|
|
|
Return path to user file. Path does not need to exist. Definition at line 93 of file Path.cpp. 00094 {
00095 std::string userdir = OptionAgent::agent()->getParam("userdir");
00096 return Path(FsPath::join(userdir, file));
00097 }
|
|
|
Definition at line 72 of file Path.cpp. 00073 {
00074 return dataPath(file, true);
00075 }
|
|
|
Definition at line 107 of file Path.cpp. 00108 {
00109 return FsPath::exists(m_path);
00110 }
|
|
|
Definition at line 101 of file Path.cpp. 00102 {
00103 return FsPath::getNative(m_path);
00104 }
|
|
|
Definition at line 22 of file Path.h. 00022 { return m_path; }
|
1.4.2