36 path[0] = str.substr(0, 36);
37 path[1] = str.substr(37, 36);
44 operator std::string()
const
50 return (std::string)path[0] +
"/" + (std::string)path[1];
55 for (
unsigned int i(0); i < N; i++) {
56 if (path[i] < other.path[i]) {
59 if (path[i] > other.path[i]) {
65 bool operator==(
const UUIDPath<N> &other)
const
67 for (
unsigned int i(0); i < N; i++) {
68 if (path[i] != other.path[i]) {
74 const UUID &at(
unsigned int i)
const
80 std::array<UUID, 3> path;
Stores a sequence of up to 3 UUIDs.
Definition: uuid_path.hpp:13
UUIDPath(const std::string &str)
Constructs UUIDPath from up to two UUIDs separated by a /.
Definition: uuid_path.hpp:30
This class encapsulates a UUID and allows it to be uses as a value type.
Definition: uuid.hpp:16