35 namespace ost {
namespace info {
52 std::vector<String>
GetList()
const {
return list_;}
58 String Leaf()
const {
return list_.empty() ?
"" : list_.back(); }
64 InfoPath(
const std::vector<String> lst,
bool rf);
66 std::vector<String> list_;
69 void init(
const String& path);
encapsulates path to info groups and items
InfoPath(const String &p)
initialize with String
std::vector< String > GetList() const
retrieve list of path elements
InfoPath Strip() const
return path with last element stripped away
String Leaf() const
return last path element
friend InfoPath operator+(const InfoPath &p1, const InfoPath &p2)
bool IsRelative() const
returns true if this path is relative
#define DLLEXPORT_OST_INFO
DLLEXPORT_OST_INFO InfoPath operator+(const InfoPath &p1, const InfoPath &p2)
DLLEXPORT_OST_INFO std::ostream & operator<<(std::ostream &, const InfoPath &p)