carb::extras::Uuid
Defined in carb/extras/Uuid.h
-
class Uuid
UUIDv4 Unique Identifier (RFC 4122)
Public Functions
-
inline Uuid() noexcept
Initialize empty UUID, 00000000-0000-0000-0000-000000000000.
-
inline Uuid(const std::string &uuidStr) noexcept
Convert a string to a Uuid using UUID format.
Accepts the following formats: 00000000-0000-0000-0000-000000000000 {00000000-0000-0000-0000-000000000000} urn:uuid:00000000-0000-0000-0000-000000000000
- Parameters
uuidStr – string to try and convert to Uuid from
-
inline bool isEmpty() const noexcept
Check if Uuid is empty.
- Returns
true if Uuid is empty; otherwise, false
-
inline const value_type &data() const noexcept
Access the binary data of the UUID.
- Returns
array of UUID data
-
inline Uuid() noexcept