LiveSupport::Core::Uuid Class Reference

#include <Uuid.h>

List of all members.


Detailed Description

A class representing globally unique identifiers.

This implementation is based on the Leach UUID/GUID draft: http://www.opengroup.org/dce/info/draft-leach-uuids-guids-01.txt

Author:
Author
fgerlits
Version:
Revision
2329
See also:
http://www.opengroup.org/dce/info/draft-leach-uuids-guids-01.txt

Definition at line 96 of file Uuid.h.

Public Member Functions

bool operator== (const Uuid &otherId) const throw ()
 Compare this is with an other one.
bool operator!= (const Uuid &otherId) const throw ()
 Compare this is with an other one.
 operator std::string () const throw ()
 Return the string value of this globally unique id.

Static Public Member Functions

static Ptr< Uuid >::Ref generateId (void) throw ()
 Generate a globally unique id.

Classes

struct  UuidNode
 Structure holding a 6-byte system node id.


Member Function Documentation

Ptr< Uuid >::Ref Uuid::generateId ( void   )  throw () [static]

Generate a globally unique id.

This is used for testing. In real life, unique IDs are generated by the storage server.

Definition at line 79 of file Uuid.cxx.

Referenced by LiveSupport::Core::UniqueId::generateId().

LiveSupport::Core::Uuid::operator std::string (  )  const throw () [inline]

Return the string value of this globally unique id.

Returns:
the string value of this id.

Definition at line 294 of file Uuid.h.

bool LiveSupport::Core::Uuid::operator!= ( const Uuid otherId  )  const throw () [inline]

Compare this is with an other one.

Parameters:
otherId the other unqiue id to compare to.
Returns:
true if this an otherId do not have the same ID value, false otherwise.

Definition at line 284 of file Uuid.h.

bool LiveSupport::Core::Uuid::operator== ( const Uuid otherId  )  const throw () [inline]

Compare this is with an other one.

Parameters:
otherId the other unqiue id to compare to.
Returns:
true if this an otherId have the same ID value, false otherwise.

Definition at line 271 of file Uuid.h.


The documentation for this class was generated from the following files:
Generated on Tue Sep 11 02:00:38 2007 for Campcaster by  1.4.7