#include <cmnPath.h>
Inheritance diagram for cmnPath:


The directories can be added either at the head or the tail of the list. This class doesn't check weither the directories in the path actually exist, mostly to allow a portable program (e.g. one program can add both "/usr/local/bin" and "C:\Program Files").
As a convention, the separator between subdirectories should be a "/" (slash) and the separation between two directories in the path is ";" (semi-colon). For example, "/bin;/usr/bin" will add both "/bin" and "/usr/bin".
Definition at line 69 of file cmnPath.h.
| typedef std::list<std::string> cmnPath::ContainerType |
| typedef ContainerType::iterator cmnPath::iterator |
| typedef ContainerType::const_iterator cmnPath::const_iterator |
| anonymous enum |
| anonymous enum |
| cmnPath::cmnPath | ( | const std::string & | path | ) |
Create a search path from a string.
| virtual cmnPath::~cmnPath | ( | void | ) | [inline, virtual] |
| void cmnPath::Set | ( | const std::string & | path | ) |
Set the path from a string.
| void cmnPath::Add | ( | const std::string & | path, | |
| bool | head = HEAD | |||
| ) |
Add one or more directories to the path.
Referenced by mtsProxyBaseCommon< mtsManagerLocal >::mtsProxyBaseCommon().
| void cmnPath::AddFromEnvironment | ( | const std::string & | variableName, | |
| bool | head = HEAD | |||
| ) |
Add one or more directories to the path using an environment variable.
Referenced by mtsProxyBaseCommon< mtsManagerLocal >::mtsProxyBaseCommon().
| std::string cmnPath::Find | ( | const std::string & | filename, | |
| short | mode = READ | |||
| ) | const |
Find the full name for a given file.
Referenced by mtsProxyBaseCommon< mtsManagerLocal >::mtsProxyBaseCommon().
| bool cmnPath::Remove | ( | const std::string & | directory | ) |
Remove the first occurence of a directory from the search list.
| bool cmnPath::Has | ( | const std::string & | directory | ) | const |
Indicates if a given directory is in the search list.
| void cmnPath::ToStream | ( | std::ostream & | outputStream | ) | const [virtual] |
Write the path to a stream.
Reimplemented from cmnGenericObject.
| static const std::string& cmnPath::DirectorySeparator | ( | void | ) | [static] |
A platform-independent string for separating subdirectory or file name from the parent directory name. It's equal to "/" on Linux, "\\" on Windows, etc.
| static std::string cmnPath::GetWorkingDirectory | ( | void | ) | [static] |
Get working directory