Qpid C++ Messaging API  0.22
qpid::types::Uuid Class Reference

#include <Uuid.h>

List of all members.

Public Member Functions

QPID_TYPES_EXTERN Uuid (bool unique=false)
QPID_TYPES_EXTERN Uuid (const Uuid &)
QPID_TYPES_EXTERN Uuidoperator= (const Uuid &)
QPID_TYPES_EXTERN Uuid (const unsigned char *data16)
QPID_TYPES_EXTERN void generate ()
QPID_TYPES_EXTERN void clear ()
QPID_TYPES_EXTERN bool isNull () const
QPID_TYPES_EXTERN operator bool () const
QPID_TYPES_EXTERN bool operator! () const
QPID_TYPES_EXTERN std::string str () const
QPID_TYPES_EXTERN size_t size () const
unsigned char * 
data () const

Static Public Attributes

static const size_t SIZE


QPID_TYPES_EXTERN bool operator== (const Uuid &, const Uuid &)
QPID_TYPES_EXTERN bool operator!= (const Uuid &, const Uuid &)
QPID_TYPES_EXTERN bool operator< (const Uuid &, const Uuid &)
QPID_TYPES_EXTERN bool operator> (const Uuid &, const Uuid &)
QPID_TYPES_EXTERN bool operator<= (const Uuid &, const Uuid &)
QPID_TYPES_EXTERN bool operator>= (const Uuid &, const Uuid &)
QPID_TYPES_EXTERN std::ostream & operator<< (std::ostream &, Uuid)
QPID_TYPES_EXTERN std::istream & operator>> (std::istream &, Uuid &)

Constructor & Destructor Documentation

QPID_TYPES_EXTERN qpid::types::Uuid::Uuid ( bool  unique = false)

If unique is true, this will generate a new unique uuid, if not it will construct a null uuid.

QPID_TYPES_EXTERN qpid::types::Uuid::Uuid ( const Uuid )
QPID_TYPES_EXTERN qpid::types::Uuid::Uuid ( const unsigned char *  data16)

Copy the UUID from data16, which must point to a 16-byte UUID

Member Function Documentation

QPID_TYPES_EXTERN void qpid::types::Uuid::clear ( )

Set to all zeros.

QPID_TYPES_EXTERN const unsigned char* qpid::types::Uuid::data ( ) const
QPID_TYPES_EXTERN void qpid::types::Uuid::generate ( )

Set to a new unique identifier.

QPID_TYPES_EXTERN bool qpid::types::Uuid::isNull ( ) const

Test for null (all zeros).

QPID_TYPES_EXTERN qpid::types::Uuid::operator bool ( ) const
QPID_TYPES_EXTERN bool qpid::types::Uuid::operator! ( ) const
QPID_TYPES_EXTERN Uuid& qpid::types::Uuid::operator= ( const Uuid )
QPID_TYPES_EXTERN size_t qpid::types::Uuid::size ( ) const
QPID_TYPES_EXTERN std::string qpid::types::Uuid::str ( ) const

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

Friends And Related Function Documentation

QPID_TYPES_EXTERN bool operator!= ( const Uuid ,
const Uuid  
) [friend]

Returns true if the uuids are NOT equal, false if they are.

QPID_TYPES_EXTERN bool operator< ( const Uuid ,
const Uuid  
) [friend]
QPID_TYPES_EXTERN std::ostream& operator<< ( std::ostream &  ,
) [friend]

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

QPID_TYPES_EXTERN bool operator<= ( const Uuid ,
const Uuid  
) [friend]
QPID_TYPES_EXTERN bool operator== ( const Uuid ,
const Uuid  
) [friend]

Returns true if the uuids are equal, false otherwise.

QPID_TYPES_EXTERN bool operator> ( const Uuid ,
const Uuid  
) [friend]
QPID_TYPES_EXTERN bool operator>= ( const Uuid ,
const Uuid  
) [friend]
QPID_TYPES_EXTERN std::istream& operator>> ( std::istream &  ,
) [friend]

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

Member Data Documentation

const size_t qpid::types::Uuid::SIZE [static]

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