encapsulates path to info groups and items More...
#include <info_path.hh>
Public Member Functions | |
InfoPath (const String &p) | |
InfoPath (const char *cp) | |
std::vector< String > | GetList () const |
bool | IsRelative () const |
String | Leaf () const |
InfoPath | Strip () const |
Friends | |
InfoPath | operator+ (const InfoPath &p1, const InfoPath &p2) |
encapsulates path to info groups and items
path elements in the String are separated by the typical path separator '/', where a path that starts with a slash denotes an absolute path from the root node, while a path without leading slash denotes a local path.
Definition at line 44 of file info_path.hh.
InfoPath | ( | const char * | cp | ) |
std::vector<String> GetList | ( | ) | const [inline] |
retrieve list of path elements
Definition at line 52 of file info_path.hh.
bool IsRelative | ( | ) | const [inline] |
returns true if this path is relative
Definition at line 55 of file info_path.hh.
String Leaf | ( | ) | const [inline] |
return last path element
Definition at line 58 of file info_path.hh.
InfoPath Strip | ( | ) | const |
return path with last element stripped away