iaux::iaUUID Class Reference

#include <iaUUID.h>

Public Member Functions

 iaUUID ()
 
 iaUUID (const iaUUID &other)
 
 iaUUID (uint64 value)
 
 iaUUID (const iaString &text)
 
void reset ()
 
bool operator== (const iaUUID &other) const
 
bool operator!= (const iaUUID &other)
 
iaUUID operator= (const iaUUID &other)
 
iaUUID operator= (uint64 value)
 
bool isValid () const
 
const iaString toString () const
 
 operator uint64 () const
 

Static Public Member Functions

static iaUUID getInvalid ()
 
static bool isUUID (const iaString &text)
 

Detailed Description

uuid (probably not following any standard but good enough for me)

Constructor & Destructor Documentation

◆ iaUUID() [1/4]

iaux::iaUUID::iaUUID ( )

init valid random value

◆ iaUUID() [2/4]

iaux::iaUUID::iaUUID ( const iaUUID other)

copy ctor

Parameters
otherthe other value

◆ iaUUID() [3/4]

iaux::iaUUID::iaUUID ( uint64  value)

ctor with value

Parameters
valuethe value to use as uuid

◆ iaUUID() [4/4]

iaux::iaUUID::iaUUID ( const iaString text)

import from string

expected format "0xffffffffffffffff" to read it as is every other type of string will be turned in the a hash value

Parameters
uuidthe id in string form

Member Function Documentation

◆ getInvalid()

iaUUID iaux::iaUUID::getInvalid ( )
static
Returns
invalid uuid

◆ isUUID()

bool iaux::iaUUID::isUUID ( const iaString text)
static
Returns
true if given text is a uuid
Parameters
textthe given text

◆ isValid()

bool iaux::iaUUID::isValid ( ) const
Returns
true if uuid is valid/initialized

◆ operator uint64()

iaux::iaUUID::operator uint64 ( ) const
Returns
value

◆ operator!=()

bool iaux::iaUUID::operator!= ( const iaUUID other)
Returns
true if uuids are not equal
Parameters
otherthe other uuid

◆ operator=() [1/2]

iaUUID iaux::iaUUID::operator= ( const iaUUID other)

= operator overwrites current string with new string

Parameters
textthe new string
Returns
the new string

◆ operator=() [2/2]

iaUUID iaux::iaUUID::operator= ( uint64  value)

= operator overwrites current value with new value

Parameters
valuethe new value
Returns
the new uuid

◆ operator==()

bool iaux::iaUUID::operator== ( const iaUUID other) const
Returns
true if both uuids are equal
Parameters
otherthe other uuid

◆ reset()

void iaux::iaUUID::reset ( )

makes id invalid

◆ toString()

const iaString iaux::iaUUID::toString ( ) const
Returns
id as string

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