Apache Qpid - AMQP Messaging for Java JMS, C++, Python, Ruby, and .NET | Apache Qpid Documentation |
#include <qpid/types/Uuid.h>
Public Member Functions | |
QPID_TYPES_EXTERN | 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 | Uuid (const Uuid &) |
QPID_TYPES_EXTERN Uuid & | operator= (const Uuid &) |
QPID_TYPES_EXTERN | Uuid (const unsigned char *data16) |
Copy the UUID from data16, which must point to a 16-byte UUID. | |
QPID_TYPES_EXTERN void | generate () |
Set to a new unique identifier. | |
QPID_TYPES_EXTERN void | clear () |
Set to all zeros. | |
QPID_TYPES_EXTERN bool | isNull () const |
Test for null (all zeros). | |
QPID_TYPES_EXTERN | operator bool () const |
QPID_TYPES_EXTERN bool | operator! () const |
QPID_TYPES_EXTERN std::string | str () const |
String value in format 1b4e28ba-2fa1-11d2-883f-b9a761bde3fb. | |
QPID_TYPES_EXTERN size_t | size () const |
QPID_TYPES_EXTERN const unsigned char * | data () const |
Static Public Attributes | |
static const size_t | SIZE |
Friends | |
QPID_TYPES_EXTERN bool | operator== (const Uuid &, const Uuid &) |
Returns true if the uuids are equal, false otherwise. | |
QPID_TYPES_EXTERN bool | operator!= (const Uuid &, const Uuid &) |
Returns true if the uuids are NOT equal, false if they are. | |
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) |
Print in format 1b4e28ba-2fa1-11d2-883f-b9a761bde3fb. | |
QPID_TYPES_EXTERN std::istream & | operator>> (std::istream &, Uuid &) |
Read from format 1b4e28ba-2fa1-11d2-883f-b9a761bde3fb. |
Definition at line 32 of file Uuid.h.
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.
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 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.
Returns true if the uuids are NOT equal, false if they are.
QPID_TYPES_EXTERN std::ostream& operator<< | ( | std::ostream & | , | |
Uuid | ||||
) | [friend] |
Print in format 1b4e28ba-2fa1-11d2-883f-b9a761bde3fb.
Returns true if the uuids are equal, false otherwise.
QPID_TYPES_EXTERN std::istream& operator>> | ( | std::istream & | , | |
Uuid & | ||||
) | [friend] |
Read from format 1b4e28ba-2fa1-11d2-883f-b9a761bde3fb.
const size_t qpid::types::Uuid::SIZE [static] |