OpFlex Framework 1.7.0
|
A URI is used to identify managed objects in the MODB. More...
#include <opflex/modb/URI.h>
Public Member Functions | |
URI (const OF_SHARED_PTR< const std::string > &uri) | |
Construct a URI using the given string representation. | |
URI (const std::string &uri) | |
Construct a URI using the given string representation. | |
URI (const URI &uri) | |
Construct a deep copy of the URI using the given URI. | |
~URI () | |
Destroy the URI. | |
const std::string & | toString () const |
Get the URI represented as a string. | |
void | getElements (std::vector< std::string > &elements) const |
Parse the URI and get the unescaped path elements from the URI. | |
URI & | operator= (const URI &rhs) |
Assignment operator. | |
Static Public Attributes | |
static const URI | ROOT |
Static root URI. | |
Friends | |
bool | operator== (const URI &lhs, const URI &rhs) |
Check for URI equality. | |
bool | operator!= (const URI &lhs, const URI &rhs) |
Check for URI inequality. | |
bool | operator< (const URI &lhs, const URI &rhs) |
Comparison operator for sorting. | |
size_t | hash_value (URI const &uri) |
Compute a hash value for the URI, making URI suitable as a key in a boost::unordered_map. | |
A URI is used to identify managed objects in the MODB.
It takes the form of a series of names and value of naming properties such as "/childname1/5/childname2/8/value2" that represents a unique path from the root of the tree to the specific child.