#include <DirSearchPath.h>
Public Types | ||||
| typedef boost::filesystem::path | path | |||
Public Member Functions | ||||
structors | ||||
| DirSearchPath () | ||||
| DirSearchPath (const std::string &stringifiedPath, const char *separator=",:") | ||||
| ||||
modifiers | ||||
| bool | add (const path &dir) | |||
| ||||
| bool | addCWD () | |||
| add current work dir (*nix pwd) to path | ||||
accessors | ||||
| bool | find (const std::string &fileName, std::string &fullFileName) const | |||
| returns a flag if fileName found in search path, and sets ref to fully qualified file name (in native form) | ||||
| bool | find (const path &file, path &fileFound) const | |||
| returns a flag if file found in search path. Sets ref to completed path | ||||
| std::list< path > | find_all (const path &file) const | |||
| returns lists of files found in search path. | ||||
Static Public Member Functions | ||||
helpers | ||||
| static bool | existsDir (const std::string &dirName) | |||
| check dirName is valid | ||||
| static bool | existsDir (const path &dir) | |||
| check dir path is valid | ||||
Private Attributes | ||||
| std::list< path > | m_dirs | |||
| the dir container | ||||
Classes | ||||
| class | eqPath | |||
| name More... | ||||
Definition at line 18 of file DirSearchPath.h.
| typedef boost::filesystem::path DirSearchPath::path |
Definition at line 20 of file DirSearchPath.h.
| DirSearchPath::DirSearchPath | ( | ) | [inline] |
| DirSearchPath::DirSearchPath | ( | const std::string & | stringifiedPath, | |
| const char * | separator = ",:" | |||
| ) |
| boost::filesystem::filesystem_error |
| bool DirSearchPath::add | ( | const path & | dir | ) |
| filesystem_error |
| bool DirSearchPath::addCWD | ( | ) |
add current work dir (*nix pwd) to path
| bool DirSearchPath::find | ( | const std::string & | fileName, | |
| std::string & | fullFileName | |||
| ) | const |
returns a flag if fileName found in search path, and sets ref to fully qualified file name (in native form)
returns a flag if file found in search path. Sets ref to completed path
returns lists of files found in search path.
| static bool DirSearchPath::existsDir | ( | const std::string & | dirName | ) | [static] |
check dirName is valid
| static bool DirSearchPath::existsDir | ( | const path & | dir | ) | [static] |
check dir path is valid
std::list<path> DirSearchPath::m_dirs [private] |
1.4.7