scclib
Stable Cloud Computing C++ Library
|
Universally unique identifier (uuid). More...
#include <uuid.h>
Public Member Functions | |
Uuid (Uuid &&)=delete | |
Uuid (Uuid &b) | |
Uuid & | operator= (const Uuid &b) |
Copy assignment operator. | |
Uuid & | operator= (const std::string &b) |
String copy assignment operator. More... | |
Uuid (const std::string &s) | |
String initializer. More... | |
std::string | generate () |
Generate a new uuid. More... | |
operator std::string () const | |
A uuid may be used as a string. | |
std::string | val () const |
Return the uuid value. | |
bool | operator== (const Uuid &b) const |
Equality operator. | |
bool | operator!= (const Uuid &b) const |
Not equals operator. | |
Static Public Attributes | |
static const std::string | zero = "00000000-0000-0000-0000-000000000000" |
Zero uuid is 00000000-0000-0000-000000000000. | |
Universally unique identifier (uuid).
Uuid's are 36 digit strings, with 8-4-4-12 hex encoded digits. All hex digits are lower case.
If an invalid uuid is constructed or assigned, the value is set to Uuid::zero.
|
inline |
std::string Uuid::generate | ( | ) |
|
inline |