Public Methods | |
FilePathContainer () | |
FilePathContainer (const std::string &env) | |
~FilePathContainer () | |
void | setFilePathList (const std::string &paths, const std::string &delimitor=FP_PATH_DELIMITER) |
bool | setEnvironmentVariable (const std::string &env) |
void | setFilePath (const std::string &path) |
void | FilePathContainer::addFilePath (const std::string &path) |
void | pushbackPath (const std::string &path) |
void | pushfrontPath (const std::string &path) |
std::list< std::string > & | getFilePathList () |
std::string | extractDirectory (const std::string &path) |
std::string | extractFilename (const std::string &path) |
std::string | findFile (const std::string &filename) |
Private Types | |
typedef std::list< std::string > | PathList |
Private Methods | |
void | convertStringToList (const std::string &str, PathList &lst, const std::string &delimitor) |
Private Attributes | |
PathList | m_path_list |
std::string | m_delimiter |
|
Path list |
|
Constructor |
|
Constructor - set the file path found in given environment variable |
|
Destructor |
|
Convert given string to list with sub strings (seperated by delimitor in string) |
|
Get directory from path |
|
Get filename from path |
|
Adds a list of paths to the previous one |
|
Return path to given filename if file exists in any directory |
|
Get file path list |
|
Adds a filepath to the end of the list |
|
Adds a filepath to the beginning of the list |
|
Set the file path found in given environment variable - returns true if env var found |
|
Set the file path directly |
|
Set the file path using a single string deliminated with given delimitor |
|
Delimitor used when parsing environment varaible |
|
|