CoriEngine
Loading...
Searching...
No Matches
Cori::Core::UUID Class Reference

A 128bit UUID, can be serialized to the string and deserialized from it. More...

#include <Uuid.hpp>

Public Member Functions

 UUID ()
 Generates a random 128bit UUID.
 UUID (const std::string &uuidStr)
 Loads UUID from a serialized string, the one created by GetSerializationString() method.
 operator uuids::uuid () const noexcept
std::string GetSerializationString () const
 Returns the UUID as a formated string liable for serialization.
std::pair< uint64_t, uint64_t > GetRaw () const
bool operator== (const UUID &other) const
 Do really i need to explain this?

Detailed Description

A 128bit UUID, can be serialized to the string and deserialized from it.

Definition at line 10 of file Uuid.hpp.

Constructor & Destructor Documentation

◆ UUID() [1/2]

Cori::Core::UUID::UUID ( )

Generates a random 128bit UUID.

Definition at line 22 of file Uuid.cpp.

◆ UUID() [2/2]

Cori::Core::UUID::UUID ( const std::string & uuidStr)
inlineexplicit

Loads UUID from a serialized string, the one created by GetSerializationString() method.

Parameters
uuidStrSerialized string.

Definition at line 21 of file Uuid.hpp.

Member Function Documentation

◆ GetRaw()

std::pair< uint64_t, uint64_t > Cori::Core::UUID::GetRaw ( ) const
inlinenodiscard

Definition at line 33 of file Uuid.hpp.

◆ GetSerializationString()

std::string Cori::Core::UUID::GetSerializationString ( ) const
inlinenodiscard

Returns the UUID as a formated string liable for serialization.

Returns
Formated string.

Definition at line 29 of file Uuid.hpp.

◆ operator uuids::uuid()

Cori::Core::UUID::operator uuids::uuid ( ) const
inlineexplicitnoexcept

Definition at line 23 of file Uuid.hpp.

◆ operator==()

bool Cori::Core::UUID::operator== ( const UUID & other) const
inline

Do really i need to explain this?

Definition at line 43 of file Uuid.hpp.

Here is the call graph for this function:

The documentation for this class was generated from the following files: