Base Framework
Public Types | Public Member Functions | Static Public Member Functions | List of all members
Guid Class Reference

#include <base/Guid.h>

Public Types

enum  { SIZE = 16 }
 

Public Member Functions

 Guid () noexcept
 
 Guid (const uint8(&_guid)[SIZE]) noexcept
 
 Guid (const Guid &_copy) noexcept
 
Guidoperator= (const Guid &assign) noexcept
 
bool operator== (const Guid &compare) const noexcept
 
bool operator!= (const Guid &compare) const noexcept
 
bool isNull () const noexcept
 
String toString () const
 
 operator String () const
 
const uint8 * getBytes () const noexcept
 

Static Public Member Functions

static Guid createGuid () noexcept
 
static String createGuidAsString ()
 
static Guid getGuid (const char *_guid)
 
static Guid getGuid (const String &_guid)
 
static bool isGuid (const char *_guid)
 
static bool isGuid (const String &_guid)
 

Detailed Description

Guid. Used as unique identifier.

Constructor & Destructor Documentation

◆ Guid()

Guid::Guid ( )
noexcept

Initializes as null.

Member Function Documentation

◆ createGuid()

static Guid Guid::createGuid ( )
staticnoexcept

Returns a likely unique guid.

◆ createGuidAsString()

static String Guid::createGuidAsString ( )
static

Returns a likely unique guid as a string.

◆ getBytes()

const uint8* Guid::getBytes ( ) const
inlinenoexcept

Returns the identifier.

◆ getGuid() [1/2]

static Guid Guid::getGuid ( const char *  _guid)
static

Converts string to guid.

◆ getGuid() [2/2]

static Guid Guid::getGuid ( const String _guid)
static

Converts string to guid.

◆ isGuid() [1/2]

static bool Guid::isGuid ( const char *  _guid)
static

Returns true if string is a guid.

◆ isGuid() [2/2]

static bool Guid::isGuid ( const String _guid)
static

Returns true if string is a guid.

◆ isNull()

bool Guid::isNull ( ) const
noexcept

Returns true if the guid is null.

◆ operator String()

Guid::operator String ( ) const
inline

Converts the guid to a string. E.g. "{B429A864-CDFC-4044-BCC1-BDDE18EAF8DE}"

◆ operator!=()

bool Guid::operator!= ( const Guid compare) const
noexcept

Returns true if the identifiers are different.

◆ operator==()

bool Guid::operator== ( const Guid compare) const
noexcept

Returns true if the identifiers are identical.

◆ toString()

String Guid::toString ( ) const

Converts the guid to a string. E.g. "{B429A864-CDFC-4044-BCC1-BDDE18EAF8DE}"