Uuid#
Fully qualified name: 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(carb::cpp::string_view 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 Uuid(carb::cpp::unbounded_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 Uuid &operator=(carb::cpp::string_view uuidStr) noexcept#
Assignment operator from string.
Accepts the same formats as the constructor.
- Parameters:
uuidStr – string to parse and assign from
- Returns:
reference to this Uuid
-
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#