![]() |
Home | Libraries | People | FAQ | More |
boost::property_tree::string_path — Default path class. A path is a sequence of values. Groups of values are separated by the separator value, which defaults to '.' cast to the sequence's value type. The group of values is then passed to the translator to get a key.
// In header: <boost/property_tree/string_path.hpp> template<typename String, typename Translator> class string_path { public: // types typedef ; typedef ; // construct/copy/destruct ( = ); (, = , = ); (, = , = ); (string_path &); string_path & (string_path &); // private member functions ((); () ; // public member functions (); () ; () ; () ; () ; string_path & (string_path &); };
If instantiated with std::string and id_translator<std::string>, it accepts paths of the form "one.two.three.four".
typename String
Any Sequence. If the sequence does not support random- access iteration, concatenation of paths assumes that insertions at the end preserve iterator validity.
typename Translator
A translator with internal_type == String.
string_path
public
construct/copy/destruct( separator = );Create an empty path.
( value, separator = , tr = );Create a path by parsing the given string.
Parameters: |
|
( value, separator = , tr = );Create a path by parsing the given string.
Parameters: |
|
(string_path & o);
string_path & (string_path & o);
string_path
public member functions();Take a single element off the path at the front and return it.
() ;Test if the path is empty.
() ;Test if the path contains a single element, i.e. no separators.
() ;Get the separator used by this path.
() ;
string_path & (string_path & o);Append a second path to this one.
Requires: |
o's separator is the same as this one's, or o has no separators |