Implements universally unique identifier (UUID)
More...
#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 |
|
Implements universally unique identifier (UUID)
◆ 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
The documentation for this class was generated from the following files:
- aui.core/src/AUI/Common/AUuid.h
- aui.core/src/AUI/Common/AUuid.cpp