Qpid Proton C++
0.12.1
|
A key for use with AMQP annotation maps. More...
#include <annotation_key.hpp>
Inherits restricted_scalar.
Public Member Functions | |
annotation_key () | |
Create an empty key. | |
template<class T > | |
annotation_key (T x) | |
A constructor that converts from any type that we can assign from. More... | |
template<class T > | |
T | get () const |
Return the value as type T. | |
Assignment operators | |
Assign a C++ value, deducing the AMQP type(). | |
annotation_key & | operator= (uint64_t x) |
annotation_key & | operator= (const amqp_symbol &x) |
annotation_key & | operator= (const std::string &x) |
std::string is encoded as proton::amqp::amqp_symbol. | |
annotation_key & | operator= (const char *x) |
char* is encoded as proton::amqp::amqp_symbol. | |
Get methods | |
void | get (uint64_t &x) const |
void | get (amqp_symbol &x) const |
A key for use with AMQP annotation maps.
An annotation_key can contain either a uint64_t or a proton::amqp::amqp_symbol.
|
inline |
A constructor that converts from any type that we can assign from.