Implements universally unique identifier (UUID)
#include <AUI/Common/AUuid.h>
|
| AUuid (const std::array< uint8_t, 16 > &data) |
|
const std::array< uint8_t, 16 > & | data () const noexcept |
|
std::array< uint8_t, 16 > & | data () noexcept |
|
| AUuid (const AString &s) |
|
AString | toString () const |
|
AString | toRawString () const |
|
| operator AString () const |
|
bool | operator< (const AUuid &o) const |
|
bool | operator== (const AUuid &other) const |
|
bool | operator!= (const AUuid &other) const |
|
◆ AUuid()#
Construct UUID value from string. Supported the following formats:
-
Canonical:
8-4-4-4-12
(123e4567-e89b-12d3-a456-426655440000
)
-
Raw:
32
(123e4567e89b12d3a456426655440000
)
- Parameters
-
s | string representing UUID |
◆ fromString()#
Converts a string to UUID. If the string is a valid UUID it is converted to the matching AUuid value else a new UUID generated from the string contents.
- Parameters
-
- Returns
- generated UUID.
◆ toRawString()#
AString AUuid::toRawString |
( |
| ) |
const |
|
nodiscard |
- Returns
- uuid string in raw format
◆ toString()#
- Returns
- uuid string in canonical format