![]() |
The Gaudi Framework
v28r2
|
search for files in a list of directories More...
#include <GaudiKernel/DirSearchPath.h>

Classes | |
| class | eqPath |
| name More... | |
Public Types | |
| typedef boost::filesystem::path | path |
Public Member Functions | |
constructors | |
| 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 More... | |
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) More... | |
| bool | find (const path &file, path &fileFound) const |
| returns a flag if file found in search path. Sets ref to completed path More... | |
| std::list< path > | find_all (const path &file) const |
| returns lists of files found in search path. More... | |
Static Public Member Functions | |
helpers | |
| static bool | existsDir (const std::string &dirName) |
| check dirName is valid More... | |
| static bool | existsDir (const path &dir) |
| check dir path is valid More... | |
Private Attributes | |
| std::vector< path > | m_dirs |
| the dir container More... | |
search for files in a list of directories
Definition at line 17 of file DirSearchPath.h.
| typedef boost::filesystem::path DirSearchPath::path |
Definition at line 19 of file DirSearchPath.h.
|
inline |
Definition at line 23 of file DirSearchPath.h.
| DirSearchPath::DirSearchPath | ( | const std::string & | stringifiedPath, |
| const char * | separator = ",:" |
||
| ) |
| boost::filesystem::filesystem_error |
Definition at line 29 of file DirSearchPath.cpp.
| bool DirSearchPath::add | ( | const path & | dir | ) |
| filesystem_error |
Definition at line 54 of file DirSearchPath.cpp.
| bool DirSearchPath::addCWD | ( | ) |
|
static |
|
static |
check dir path is valid
Definition at line 107 of file DirSearchPath.cpp.
| 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)
Definition at line 64 of file DirSearchPath.cpp.
returns a flag if file found in search path. Sets ref to completed path
Definition at line 75 of file DirSearchPath.cpp.
| std::list< DirSearchPath::path > DirSearchPath::find_all | ( | const path & | file | ) | const |
returns lists of files found in search path.
Definition at line 90 of file DirSearchPath.cpp.
|
private |
the dir container
Definition at line 79 of file DirSearchPath.h.