35 path[0] = str.substr(0, 36);
36 path[1] = str.substr(37, 36);
43 operator std::string()
const
49 return (std::string)path[0] +
"/" + (std::string)path[1];
54 for (
unsigned int i(0); i < N; i++) {
55 if (path[i] < other.path[i]) {
58 if (path[i] > other.path[i]) {
64 bool operator==(
const UUIDPath<N> &other)
const
66 for (
unsigned int i(0); i < N; i++) {
67 if (path[i] != other.path[i]) {
73 const UUID &at(
unsigned int i)
const
79 std::array<UUID, 3> path;
Stores a sequence of up to 3 UUIDs.
Definition: uuid_path.hpp:12
UUIDPath(const std::string &str)
Constructs UUIDPath from up to two UUIDs separated by a /.
Definition: uuid_path.hpp:29
This class encapsulates a UUID and allows it to be uses as a value type.
Definition: uuid.hpp:16