A class representing a simplified URN conforming parts of the RFC2141.
More...
#include <bayeux/datatools/urn.h>
A class representing a simplified URN conforming parts of the RFC2141.
- See also
- http://www.ietf.org/rfc/rfc2141.txt Supported format is :
urn:
namespace:specific-path
◆ urn() [1/2]
◆ urn() [2/2]
datatools::urn::urn |
( |
const std::vector< std::string > & |
segments_ | ) |
|
Constructor with explicit path segments.
◆ ~urn()
virtual datatools::urn::~urn |
( |
| ) |
|
|
virtual |
◆ append_segment()
void datatools::urn::append_segment |
( |
const std::string & |
segment_ | ) |
|
◆ from_string()
bool datatools::urn::from_string |
( |
const std::string & |
| ) |
|
Initialize from a string.
◆ get_depth()
std::size_t datatools::urn::get_depth |
( |
| ) |
const |
Return the depth of the path segments.
◆ get_namespace()
const std::string& datatools::urn::get_namespace |
( |
| ) |
const |
◆ get_segments()
const std::vector<std::string>& datatools::urn::get_segments |
( |
| ) |
const |
Return the path segments.
◆ has_namespace()
bool datatools::urn::has_namespace |
( |
| ) |
const |
Check is namespace is set.
◆ is_valid()
bool datatools::urn::is_valid |
( |
| ) |
const |
◆ reset()
void datatools::urn::reset |
( |
| ) |
|
◆ set_segments()
void datatools::urn::set_segments |
( |
const std::vector< std::string > & |
segments_ | ) |
|
◆ to_string() [1/2]
void datatools::urn::to_string |
( |
std::string & |
| ) |
const |
◆ to_string() [2/2]
std::string datatools::urn::to_string |
( |
| ) |
const |
Return a string representation.
◆ urn_scheme()
static const std::string& datatools::urn::urn_scheme |
( |
| ) |
|
|
static |
◆ urn_separator()
static char datatools::urn::urn_separator |
( |
| ) |
|
|
static |
Return the URN separator.
◆ operator<<
std::ostream& operator<< |
( |
std::ostream & |
, |
|
|
const urn & |
|
|
) |
| |
|
friend |
The documentation for this class was generated from the following file: