AUI Framework  master
Cross-platform module-based framework for developing C++20 desktop applications
AUuid Class Reference

Implements universally unique identifier (UUID) More...

Detailed Description

Implements universally unique identifier (UUID)

Public Member Functions

 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
 

Static Public Member Functions

static AUuid fromString (const AString &string)
 

Constructor & Destructor Documentation

◆ AUuid()

AUuid::AUuid ( const AString s)

Construct UUID value from string. Supported the following formats:

  • Canonical: 8-4-4-4-12 (123e4567-e89b-12d3-a456-426655440000)
  • Raw: 32 (123e4567e89b12d3a456426655440000)
Parameters
sstring representing UUID

Member Function Documentation

◆ fromString()

AUuid AUuid::fromString ( const AString string)
static

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
string
Returns
generated UUID.

◆ toRawString()

AString AUuid::toRawString ( ) const
Returns
uuid string in raw format

◆ toString()

AString AUuid::toString ( ) const
Returns
uuid string in canonical format

#include <AUI/Common/AUuid.h>


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