InfoPath Class Reference

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< StringGetList () const
bool IsRelative () const
String Leaf () const
InfoPath Strip () const

Friends

InfoPath operator+ (const InfoPath &p1, const InfoPath &p2)

Detailed Description

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.


Constructor & Destructor Documentation

InfoPath ( const String p  ) 

initialize with String

InfoPath ( const char *  cp  ) 

Member Function Documentation

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


Friends And Related Function Documentation

InfoPath operator+ ( const InfoPath p1,
const InfoPath p2 
) [friend]

The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines

Generated on 10 Nov 2016 for OpenStructure by  doxygen 1.6.1