Apache Qpid - AMQP Messaging for Java JMS, C++, Python, Ruby, and .NET Apache Qpid Documentation
Public Member Functions | List of all members
qpid::framing::Uuid Struct Reference

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

#include <qpid/framing/Uuid.h>

Public Member Functions

 Uuid (bool unique=false)
 If unique is true, generate a unique ID else a null ID. More...
 
 Uuid (const uint8_t *data)
 Copy from 16 bytes of data. More...
 
 Uuid (const std::string &)
 Parse format 1b4e28ba-2fa1-11d2-883f-b9a761bde3fb. More...
 
void assign (const uint8_t *data)
 Copy from 16 bytes of data. More...
 
void generate ()
 Set to a new unique identifier. More...
 
void clear ()
 Set to all zeros. More...
 
bool isNull () const
 Test for null (all zeros). More...
 
QPID_COMMON_INLINE_EXTERN operator bool () const
 
QPID_COMMON_INLINE_EXTERN bool operator! () const
 
void encode (framing::Buffer &buf) const
 
void decode (framing::Buffer &buf)
 
QPID_COMMON_INLINE_EXTERN uint32_t encodedSize () const
 
std::string str () const
 String value in format 1b4e28ba-2fa1-11d2-883f-b9a761bde3fb. More...
 
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.

TODO: change this implementation as it leaks boost into the client API

Definition at line 44 of file Uuid.h.

Constructor & Destructor Documentation

qpid::framing::Uuid::Uuid ( bool  unique = false)

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

qpid::framing::Uuid::Uuid ( const uint8_t data)

Copy from 16 bytes of data.

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

Parse format 1b4e28ba-2fa1-11d2-883f-b9a761bde3fb.

Member Function Documentation

void qpid::framing::Uuid::assign ( const uint8_t data)

Copy from 16 bytes of data.

void qpid::framing::Uuid::clear ( )

Set to all zeros.

void qpid::framing::Uuid::decode ( framing::Buffer buf)
void qpid::framing::Uuid::encode ( framing::Buffer buf) const
QPID_COMMON_INLINE_EXTERN uint32_t qpid::framing::Uuid::encodedSize ( ) const
inline

Definition at line 73 of file Uuid.h.

void qpid::framing::Uuid::generate ( )

Set to a new unique identifier.

bool qpid::framing::Uuid::isNull ( ) const

Test for null (all zeros).

Referenced by operator bool(), and operator!().

QPID_COMMON_INLINE_EXTERN qpid::framing::Uuid::operator bool ( ) const
inline

Definition at line 68 of file Uuid.h.

References isNull().

QPID_COMMON_INLINE_EXTERN bool qpid::framing::Uuid::operator! ( ) const
inline

Definition at line 69 of file Uuid.h.

References isNull().

template<class S >
void qpid::framing::Uuid::serialize ( S &  s)
inline

Definition at line 79 of file Uuid.h.

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

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

Referenced by qpid::console::UuidValue::str().


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

Qpid C++ API Reference
Generated on Fri Aug 29 2014 for Qpid C++ Client API by doxygen 1.8.3.1