Qpid Proton C++  0.12.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Pages
Public Member Functions | List of all members
message_id Class Reference

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 >
get () const
 Return the value as type T.
 
Assignment operators

Assign a C++ value, deduce the AMQP type()

message_idoperator= (uint64_t x)
 
message_idoperator= (const amqp_uuid &x)
 
message_idoperator= (const amqp_binary &x)
 
message_idoperator= (const amqp_string &x)
 
message_idoperator= (const std::string &x)
 std::string is encoded as amqp_string
 
message_idoperator= (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
 

Detailed Description

An AMQP message ID.

It can contain one of the following types:


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