qpid::framing::Uuid Struct Reference

A UUID is represented as a boost::array of 16 bytes. More...

#include <Uuid.h>

List of all members.

Public Member Functions

 Uuid (bool unique=false)
 If unique is true, generate a unique ID else a null ID.
 Uuid (const uint8_t *data)
 Copy from 16 bytes of data.
void assign (const uint8_t *data)
 Copy from 16 bytes of data.
void generate ()
 Set to a new unique identifier.
void clear ()
 Set to all zeros.
bool isNull () const
 Test for null (all zeros).
void encode (framing::Buffer &buf) const
void decode (framing::Buffer &buf)
std::string str () const
 String value in format 1b4e28ba-2fa1-11d2-883f-b9a761bde3fb.
template<class S>
void serialize (S &s)


Detailed Description

A UUID is represented as a boost::array of 16 bytes.

Full value semantics, operators ==, < etc. are provided by boost::array so Uuid can be the key type in a map etc.


Constructor & Destructor Documentation

qpid::framing::Uuid::Uuid ( bool  unique = false  )  [inline]

If unique is true, generate a unique ID else a null ID.

References clear(), and generate().

qpid::framing::Uuid::Uuid ( const uint8_t *  data  )  [inline]

Copy from 16 bytes of data.

References assign().


Member Function Documentation

void qpid::framing::Uuid::assign ( const uint8_t *  data  )  [inline]

Copy from 16 bytes of data.

Referenced by Uuid().

void qpid::framing::Uuid::generate (  )  [inline]

Set to a new unique identifier.

Referenced by Uuid().

void qpid::framing::Uuid::clear (  )  [inline]

Set to all zeros.

Referenced by Uuid().

bool qpid::framing::Uuid::isNull (  )  const [inline]

Test for null (all zeros).

std::string qpid::framing::Uuid::str (  )  const

String value in format 1b4e28ba-2fa1-11d2-883f-b9a761bde3fb.


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

Generated on Thu May 15 22:24:43 2008 for Qpid by  doxygen 1.5.5