8 #ifndef META_OCEAN_PLATFORM_UNIQUE_ID_H
9 #define META_OCEAN_PLATFORM_UNIQUE_ID_H
16 #include <uuid/uuid.h>
43 inline UniqueId(
unsigned long long a,
unsigned long long b);
49 inline explicit UniqueId(
const bool createUniqueId);
66 inline std::string
string()
const;
80 inline const unsigned long long*
operator()()
const;
144 static_assert(
sizeof(UUID) ==
sizeof(
unsigned long long) * 2,
"Invalid UUID size!");
145 UuidCreate((UUID*)
value);
147 static_assert(
sizeof(
unsigned long long) == 8,
"Invalid data type");
148 static_assert(
sizeof(uuid_t) ==
sizeof(
unsigned long long) * 2,
"Invalid data type");
150 uuid_generate(*((uuid_t*)&
value));
186 return !(*
this == uniqueId);
static std::string toAStringHex(const char value, const bool upperCases=true)
Converts a value to a string with 8bit character as hexadecimal notation.
static std::string toAStringHexReverse(const uint8_t *data, const size_t size, const bool upperCases=true)
Converts memory to a string with hexadecimal notation in a reverse order.
The namespace covering the entire Ocean framework.
Definition: Accessor.h:15