OpenStructure
Public Member Functions | Friends
InfoPath Class Reference

#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() [1/2]

InfoPath ( const String p)

initialize with String

◆ InfoPath() [2/2]

InfoPath ( const char *  cp)

Member Function Documentation

◆ GetList()

std::vector<String> GetList ( ) const
inline

retrieve list of path elements

Definition at line 52 of file info_path.hh.

◆ IsRelative()

bool IsRelative ( ) const
inline

returns true if this path is relative

Definition at line 55 of file info_path.hh.

◆ Leaf()

String Leaf ( ) const
inline

return last path element

Definition at line 58 of file info_path.hh.

◆ Strip()

InfoPath Strip ( ) const

return path with last element stripped away

Friends And Related Function Documentation

◆ operator+

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

The documentation for this class was generated from the following file: