31 #ifndef _SCC_CRYPTO_UUID_H
32 #define _SCC_CRYPTO_UUID_H
38 namespace scc::crypto {
65 void assign(
const std::string&);
75 explicit_bzero(m_uuid.data(), m_uuid.size());
114 operator std::string()
const {
return m_uuid; }
117 std::string
val()
const {
return m_uuid; }
122 return m_uuid == b.m_uuid;
127 return m_uuid != b.m_uuid;
Universally unique identifier (uuid).
Uuid(const std::string &s)
String initializer.
bool operator!=(const Uuid &b) const
Not equals operator.
std::string val() const
Return the uuid value.
bool operator==(const Uuid &b) const
Equality operator.
Uuid & operator=(const Uuid &b)
Copy assignment operator.
static const std::string zero
Zero uuid is 00000000-0000-0000-000000000000.
std::string generate()
Generate a new uuid.
void PrintTo(const Uuid &, std::ostream *)
Googletest printer.
std::ostream & operator<<(std::ostream &, const scc::crypto::Uuid &)
Print the uuid to stream.