6 #include <Poco/UUIDGenerator.h>
18 unsigned int operator() (
const GlobalID &
id)
33 GlobalID(
const GlobalID &gid):
40 return m_uuid.isNull();
43 static GlobalID random()
45 return GlobalID(Poco::UUIDGenerator::defaultGenerator()
49 static GlobalID parse(
const std::string &s)
56 static GlobalID fromBytes(
const std::vector<uint8_t> &in);
57 std::vector<uint8_t> toBytes()
const;
59 unsigned int hash()
const;
61 std::string toString()
const
63 return m_uuid.toString();
66 bool operator !=(
const GlobalID &
id)
const
68 return m_uuid !=
id.m_uuid;
71 bool operator ==(
const GlobalID &
id)
const
73 return m_uuid ==
id.m_uuid;
76 bool operator <(
const GlobalID &
id)
const
78 return m_uuid <
id.m_uuid;
81 bool operator >(
const GlobalID &
id)
const
83 return m_uuid >
id.m_uuid;
86 bool operator <=(
const GlobalID &
id)
const
88 return m_uuid <=
id.m_uuid;
91 bool operator >=(
const GlobalID &
id)
const
93 return m_uuid >=
id.m_uuid;
Definition: GlobalID.h:10
unsigned int hash() const
Definition: GlobalID.cpp:12
Definition: GlobalID.h:17