cartobase  5.0.5
carto::UUID Class Reference

Unique identifier class. More...

#include <cartobase/uuid/uuid.h>

Public Member Functions

 UUID ()
 
 UUID (const UUID &u)
 
 UUID (const std::string &s)
 
bool operator== (const UUID &u) const
 
std::string toString () const
 
bool isNull () const
 
void generate ()
 

Detailed Description

Unique identifier class.

UUID is used to generate and to hold unique identifiers. A unique identifier is (almost) sure not to exist anywhere else in the world. Depending on the system, several UUID generation methods may be used (generally mixing date information, hardware system information and perhaps a random part). An UUID is convertible to and from a string so it is very easily to save and reload.

UUIDs are attached to persistant objects that must be identified and shared between several applications, or on a network, etc. They are a bit like persistant pointers which remain valid accross applications.

Definition at line 59 of file uuid.h.

Constructor & Destructor Documentation

◆ UUID() [1/3]

carto::UUID::UUID ( )

◆ UUID() [2/3]

carto::UUID::UUID ( const UUID u)

◆ UUID() [3/3]

carto::UUID::UUID ( const std::string &  s)

Member Function Documentation

◆ generate()

void carto::UUID::generate ( )

◆ isNull()

bool carto::UUID::isNull ( ) const

◆ operator==()

bool carto::UUID::operator== ( const UUID u) const

◆ toString()

std::string carto::UUID::toString ( ) const

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