ATLAS Offline Software
|
This class provides a encapsulation of a GUID/UUID/CLSID/IID data structure (128 bit number). More...
#include <Guid.h>
Public Types | |
enum | GuidGenMethod { GuidGenDefault, GuidGenRandom, GuidGenByTime } |
Public Member Functions | |
Guid () | |
Standard constructor. More... | |
Guid (bool assign) | |
Standard constructor (With possible initialization) More... | |
Guid (const char *s) | |
Constructor for Guid from char*. More... | |
Guid (const std::string &s) | |
Constructor for Guid from string. More... | |
Guid (const Guid &c) | |
Copy constructor. More... | |
Guid & | operator= (const Guid &g) |
Assignment operator. More... | |
bool | operator< (const Guid &g) const |
Smaller operator. More... | |
bool | operator== (const Guid &g) const |
Equality operator. More... | |
bool | operator== (const std::string &g) const |
bool | operator!= (const Guid &g) const |
Non-equality operator. More... | |
bool | operator!= (const std::string &g) const |
const std::string | toString () const |
Automatic conversion to string representation. More... | |
const Guid & | fromString (const std::string &s) |
Automatic conversion from string representation. More... | |
unsigned int | data1 () const |
Allow accessors to member data. More... | |
unsigned short | data2 () const |
unsigned short | data3 () const |
unsigned char | data4 (unsigned int i) const |
void | setData1 (unsigned int data) |
Allow modifiers for member data. More... | |
void | setData2 (unsigned short data) |
void | setData3 (unsigned short data) |
void | setData4 (unsigned char data, unsigned int i) |
Static Public Member Functions | |
static const Guid & | null () |
NULL-Guid: static class method. More... | |
static GuidGenMethod | initGuidGenMethod () |
Checks for POOL_GUID_TIME or POOL_GUID_RANDOM env variables. More... | |
static void | create (Guid &guid, GuidGenMethod method=GuidGenDefault) |
Create a new Guid default method is currently Random, can be changed by param, API or environment. More... | |
Static Public Attributes | |
static const GuidGenMethod | m_guidGenMethod = Guid::initGuidGenMethod() |
Private Attributes | |
unsigned int | m_data1 |
unsigned short | m_data2 |
unsigned short | m_data3 |
unsigned char | m_data4 [8] |
Friends | |
bool | operator== (const std::string &str, const Guid &rhs) |
Equality operator. More... | |
bool | operator!= (const std::string &str, const Guid &rhs) |
Non-equality operator. More... | |
std::ostream & | operator<< (std::ostream &os, const Guid &rhs) |
Extraction operators. More... | |
This class provides a encapsulation of a GUID/UUID/CLSID/IID data structure (128 bit number).
enum Guid::GuidGenMethod |
|
inline |
|
inlineexplicit |
|
inlineexplicit |
|
inlineexplicit |
|
static |
|
inline |
|
inline |
|
inline |
|
inline |
|
static |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
const std::string Guid::toString | ( | ) | const |
Automatic conversion to string representation.
|
static |