![]() |
VR-Forces 5.0.3 Developer's Guide
|
Utility class which contains a single path which is represented as a list of strings.
Public Member Functions | |
| DtPathList () | |
| DtPathList (const std::string &path, char separator=defaultSeparator()) | |
| DtPathList (const std::vector< std::string > &path, char separator=defaultSeparator()) | |
| DtPathList (const DtPathList &orig) | |
| DtPathList & | operator= (const DtPathList &) |
| DtPathList & | operator= (const std::vector< std::string > &) |
| ~DtPathList () | |
| void | setSeparator (char separator) |
| char | separator () const |
| void | pop () |
| void | push (const std::string &p) |
| std::string | path () const |
| unsigned int | size () const |
| const std::string & | operator[] (int i) const |
| bool | descendsFrom (const DtPathList &s) const |
| void | remove (int i) |
| bool | contains (const std::string &s) const |
Static Public Member Functions | |
| static char | defaultSeparator () |
Protected Member Functions | |
| std::vector< std::string > | pathListFrom (const std::string &path) |
Protected Attributes | |
| std::vector< std::string > | myPath |
| char | mySeparator |
| makVrv::DtPathList::DtPathList | ( | ) |
Default CTOR creates an empty path.
| makVrv::DtPathList::DtPathList | ( | const std::string & | path, |
| char | separator = defaultSeparator() |
||
| ) |
CTOR that turn a path into a path list.
| makVrv::DtPathList::DtPathList | ( | const std::vector< std::string > & | path, |
| char | separator = defaultSeparator() |
||
| ) |
Path which is initialized with a vector of strings.
| makVrv::DtPathList::DtPathList | ( | const DtPathList & | orig | ) |
Copy CTOR.
| makVrv::DtPathList::~DtPathList | ( | ) |
DTOR.
| DtPathList& makVrv::DtPathList::operator= | ( | const DtPathList & | ) |
Copy assignment operator.
| DtPathList& makVrv::DtPathList::operator= | ( | const std::vector< std::string > & | ) |
Assign from vector of strings.
| void makVrv::DtPathList::setSeparator | ( | char | separator | ) |
| char makVrv::DtPathList::separator | ( | ) | const |
| void makVrv::DtPathList::pop | ( | ) |
Pops the last path element.
| void makVrv::DtPathList::push | ( | const std::string & | p | ) |
Adds element to end of path.
| std::string makVrv::DtPathList::path | ( | ) | const |
Returns path.
| const std::string& makVrv::DtPathList::operator[] | ( | int | i | ) | const |
| bool makVrv::DtPathList::descendsFrom | ( | const DtPathList & | s | ) | const |
| void makVrv::DtPathList::remove | ( | int | i | ) |
| bool makVrv::DtPathList::contains | ( | const std::string & | s | ) | const |
|
static |
|
protected |
|
protected |
|
protected |