Qpid Proton C++
0.12.1
|
An AMQP message ID. More...
#include <message_id.hpp>
Inherits restricted_scalar.
Public Member Functions | |
message_id () | |
Create an empty (0) message ID. | |
template<class T > | |
message_id (T x) | |
Create a message ID from any type that we can assign from. | |
template<class T > | |
T | get () const |
Return the value as type T. | |
Assignment operators | |
Assign a C++ value, deduce the AMQP type() | |
message_id & | operator= (uint64_t x) |
message_id & | operator= (const amqp_uuid &x) |
message_id & | operator= (const amqp_binary &x) |
message_id & | operator= (const amqp_string &x) |
message_id & | operator= (const std::string &x) |
std::string is encoded as amqp_string | |
message_id & | operator= (const char *x) |
char* is encoded as amqp_string | |
Get methods | |
get(T&) extracts the value if the types match exactly and throws type_error otherwise. | |
void | get (uint64_t &x) const |
void | get (amqp_uuid &x) const |
void | get (amqp_binary &x) const |
void | get (amqp_string &x) const |
An AMQP message ID.
It can contain one of the following types: