1 #ifndef PROTON_MESSAGE_ID_HPP 2 #define PROTON_MESSAGE_ID_HPP 29 #include <proton/type_compat.h> 59 message_id& operator=(uint64_t x) { put_(x);
return *
this; }
62 message_id& operator=(
const std::string& x) { put_(x);
return *
this; }
87 template<>
inline std::string get<std::string>(
const message_id& x) {
return internal::get<std::string>(x); }
95 #endif // PROTON_MESSAGE_ID_HPP An AMQP message.
Definition: message.hpp:50
T coerce(const message_id &x)
Coerce the contained value to type T.
Definition: message_id.hpp:91
A 16-byte universally unique identifier.
Definition: uuid.hpp:37
The base class for scalar types.
Definition: scalar_base.hpp:60
message_id(const T &x)
Construct from any type that can be assigned.
Definition: message_id.hpp:53
Arbitrary binary data.
Definition: binary.hpp:40
The base class for scalar types.
uint64_t get< uint64_t >(const message_id &x)
Get the uint64_t value or throw conversion_error.
Definition: message_id.hpp:81
uuid get< uuid >(const message_id &x)
Get the uuid value or throw conversion_error.
Definition: message_id.hpp:83
A 16-byte universally unique identifier.
message_id & operator=(const char *x)
Treated as amqp::STRING.
Definition: message_id.hpp:63
The main Proton namespace.
Definition: annotation_key.hpp:33
binary get< binary >(const message_id &x)
Get the binary value or throw conversion_error.
Definition: message_id.hpp:85
Unsettled API - A stream-like decoder from AMQP bytes to C++ values.
Definition: decoder.hpp:56
An AMQP message ID.
Definition: message_id.hpp:47
uint64_t get< uint64_t >(const annotation_key &x)
Get the uint64_t value or throw conversion_error.
Definition: annotation_key.hpp:72
message_id()
An empty message_id.
Definition: message_id.hpp:50