Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members  

lm::UUID Class Reference

#include <UUID.h>

List of all members.

Public Methods

 UUID ()
 UUID (const std::string &uuid)
 UUID (const UUID &uuid)
UUID & operator= (const UUID &uuid)
bool isNull () const
std::string str () const
bool operator== (const UUID &uuid) const
bool operator!= (const UUID &uuid) const
bool operator< (const UUID &uuid) const

Static Public Methods

UUID generate ()

Static Public Attributes

const UUID NullUUID

Private Methods

void makeFromString (const std::string &uuid)

Private Attributes

germ_uuid_t mUuid


Detailed Description

A Universal Unique IDentifier. This is a 128-bit number that is statistically guaranteed to be unique.

\example germ::UUID uuid1("ac4db2a0-51df-40a9-8770-be070630370e"); germ::UUID uuid2 = germ:UUID::generate(); \endexample


Constructor & Destructor Documentation

lm::UUID::UUID  
 

Creates a null UUID. This will initialize the data to all zeros.

lm::UUID::UUID const std::string &    uuid
 

Creates a UUID from the string representation. The expected format of the string is: "8x-4x-4x-2x2x-2x2x2x2x2x2x".

lm::UUID::UUID const UUID &    uuid
 

Copies the given UUID.


Member Function Documentation

UUID lm::UUID::generate   [static]
 

Generates a new UUID.

bool lm::UUID::isNull   const
 

Tests if this UUID in null. The UUID is null if all the data is 0.

void lm::UUID::makeFromString const std::string &    uuid [private]
 

Parses a UUID out of the given string.

bool lm::UUID::operator!= const UUID &    uuid const
 

Tests if this UUID is not equal to the given UUID.

bool lm::UUID::operator< const UUID &    uuid const
 

Tests if this UUID is less that the given UUID.

UUID & lm::UUID::operator= const UUID &    uuid
 

Copies the given UUID into this UUID.

bool lm::UUID::operator== const UUID &    uuid const
 

Tests if this UUID is equal to the given UUID.

std::string lm::UUID::str   const
 

Gets the string representation of this UUID.


Member Data Documentation

germ_uuid_t lm::UUID::mUuid [private]
 

const UUID lm::UUID::NullUUID [static]
 

The null or empty UUID.


The documentation for this class was generated from the following files:
Generated on Wed Oct 22 21:33:22 2003 for AI Loom by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002