Main Page | Class Hierarchy | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals

Path Class Reference


Detailed Description

Path to a installed data.

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.


Member Function Documentation

Path Path::dataReadPath const std::string &  file  )  [static]
 

Definition at line 66 of file Path.cpp.

00067 {
00068     return dataPath(file, false);
00069 }

Path Path::dataSystemPath const std::string &  file  )  [static]
 

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 }

Path Path::dataUserPath const std::string &  file  )  [static]
 

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 }

Path Path::dataWritePath const std::string &  file  )  [static]
 

Definition at line 72 of file Path.cpp.

00073 {
00074     return dataPath(file, true);
00075 }

bool Path::exists  )  const
 

Definition at line 107 of file Path.cpp.

00108 {
00109     return FsPath::exists(m_path);
00110 }

std::string Path::getNative  )  const
 

Definition at line 101 of file Path.cpp.

00102 {
00103     return FsPath::getNative(m_path);
00104 }

std::string Path::getPosixName  )  const [inline]
 

Definition at line 22 of file Path.h.

00022 { return m_path; }


The documentation for this class was generated from the following files:
Generated on Wed Jun 1 09:56:08 2005 for Fish Fillets - Next Generation by  doxygen 1.4.2