#include <UUID.h>
Public Methods | |
| UUID () | |
| UUID (const std::string &uuid) | |
| UUID (const UUID &uuid) | |
| UUID & | operator= (const UUID &uuid) |
| bool | isNull () const |
| std::string | str () const |
| bool | operator== (const UUID &uuid) const |
| bool | operator!= (const UUID &uuid) const |
| bool | operator< (const UUID &uuid) const |
Static Public Methods | |
| UUID | generate () |
Static Public Attributes | |
| const UUID | NullUUID |
Private Methods | |
| void | makeFromString (const std::string &uuid) |
Private Attributes | |
| germ_uuid_t | mUuid |
\example germ::UUID uuid1("ac4db2a0-51df-40a9-8770-be070630370e"); germ::UUID uuid2 = germ:UUID::generate(); \endexample
|
|
Creates a null UUID. This will initialize the data to all zeros. |
|
|
Creates a UUID from the string representation. The expected format of the string is: "8x-4x-4x-2x2x-2x2x2x2x2x2x". |
|
|
Copies the given UUID. |
|
|
Generates a new UUID. |
|
|
Tests if this UUID in null. The UUID is null if all the data is 0. |
|
|
Parses a UUID out of the given string. |
|
|
|
|
|
|
Gets the string representation of this UUID. |
|
|
|
|
|
The null or empty UUID. |
1.2.14 written by Dimitri van Heesch,
© 1997-2002