The main Proton namespace. More...
Namespaces | |
codec | |
Unsettled API - AMQP data encoding and decoding. | |
connect_config | |
Unsettled API | |
io | |
Unsettled API - Interfaces for IO integration. | |
Classes | |
class | annotation_key |
A key for use with AMQP annotation maps. More... | |
class | binary |
Arbitrary binary data. More... | |
class | byte_array |
Arbitrary fixed-size data. More... | |
class | connection |
A connection to a remote AMQP peer. More... | |
class | connection_options |
Options for creating a connection. More... | |
class | container |
A top-level container of connections, sessions, and links. More... | |
class | decimal32 |
A 32-bit decimal floating-point value. More... | |
class | decimal64 |
A 64-bit decimal floating-point value. More... | |
class | decimal128 |
A 128-bit decimal floating-point value. More... | |
class | delivery |
A received message. More... | |
struct | delivery_mode |
The message delivery policy to establish when opening a link. More... | |
class | duration |
A span of time in milliseconds. More... | |
class | endpoint |
The base class for session, connection, and link. More... | |
struct | error |
The base Proton error. More... | |
struct | timeout_error |
An operation timed out. More... | |
struct | conversion_error |
An error converting between AMQP and C++ data. More... | |
class | error_condition |
Describes an endpoint error state. More... | |
class | returned |
A return type for container methods. More... | |
class | link |
A named channel for sending or receiving messages. More... | |
class | listen_handler |
Unsettled API - A handler for incoming connections. More... | |
class | listener |
A listener for incoming connections. More... | |
class | map |
A collection of key-value pairs. More... | |
class | message |
An AMQP message. More... | |
class | message_id |
An AMQP message ID. More... | |
class | messaging_handler |
Handler for Proton messaging events. More... | |
class | null |
The type of the AMQP null value. More... | |
class | receiver |
A channel for receiving messages. More... | |
class | receiver_options |
Options for creating a receiver. More... | |
class | reconnect_options |
Unsettled API - Options for reconnect and failover after connection loss. More... | |
class | sasl |
SASL information. More... | |
class | scalar |
A holder for an instance of any scalar AMQP type. More... | |
class | scalar_base |
The base class for scalar types. More... | |
class | sender |
A channel for sending messages. More... | |
class | sender_options |
Options for creating a sender. More... | |
class | session |
A container of senders and receivers. More... | |
class | session_options |
Options for creating a session. More... | |
class | source |
A point of origin for messages. More... | |
class | source_options |
Options for creating a source node for a sender or receiver. More... | |
class | ssl |
SSL information. More... | |
class | ssl_certificate |
Unsettled API - An SSL certificate. More... | |
class | ssl_server_options |
Unsettled API - SSL configuration for inbound connections. More... | |
class | ssl_client_options |
Unsettled API - SSL configuration for outbound connections. More... | |
class | symbol |
A string that represents the AMQP symbol type. More... | |
class | target |
A destination for messages. More... | |
class | target_options |
Options for creating a target node for a sender or receiver. More... | |
class | terminus |
One end of a link, either a source or a target. More... | |
class | timestamp |
A 64-bit timestamp in milliseconds since the Unix epoch. More... | |
class | tracker |
A tracker for a sent message. More... | |
class | transfer |
The base class for delivery and tracker. More... | |
class | transport |
A network channel supporting an AMQP connection. More... | |
struct | url_error |
Deprecated - Use a third-party URL library. More... | |
class | url |
Deprecated - Use a third-party URL library. More... | |
class | uuid |
A 16-byte universally unique identifier. More... | |
class | value |
A holder for any AMQP value, simple or complex. More... | |
class | work_queue |
Unsettled API - A context for thread-safe execution of work. More... | |
Typedefs | |
typedef class container | default_container |
Deprecated - Use proton::container . | |
Enumerations | |
enum | type_id { NULL_TYPE , BOOLEAN , UBYTE , BYTE , USHORT , SHORT , UINT , INT , CHAR , ULONG , LONG , TIMESTAMP , FLOAT , DOUBLE , DECIMAL32 , DECIMAL64 , DECIMAL128 , UUID , BINARY , STRING , SYMBOL , DESCRIBED , ARRAY , LIST , MAP } |
An identifier for AMQP types. More... | |
Functions | |
template<> | |
uint64_t | get< uint64_t > (const annotation_key &x) |
Get the uint64_t value or throw conversion_error. | |
template<> | |
symbol | get< symbol > (const annotation_key &x) |
Get the symbol value or throw conversion_error. | |
template<class T > | |
T | coerce (const annotation_key &x) |
Get the binary value or throw conversion_error. More... | |
std::ostream & | operator<< (std::ostream &, const binary &) |
Print a binary value. | |
std::ostream & | operator<< (std::ostream &, const decimal32 &) |
Print a 32-bit decimal value. | |
std::ostream & | operator<< (std::ostream &, const decimal64 &) |
Print a 64-bit decimal value. | |
std::ostream & | operator<< (std::ostream &, const decimal128 &) |
Print a 128-bit decimal value. | |
std::ostream & | operator<< (std::ostream &, duration) |
Print a duration. | |
bool | operator== (const error_condition &x, const error_condition &y) |
std::ostream & | operator<< (std::ostream &o, const error_condition &err) |
Human readable string. | |
template<class K , class T > | |
proton::codec::decoder & | operator>> (proton::codec::decoder &d, map< K, T > &m) |
Decode from a proton::map. | |
template<class K , class T > | |
proton::codec::encoder & | operator<< (proton::codec::encoder &e, const map< K, T > &m) |
Encode to a proton::map. | |
template<class K , class T > | |
void | swap (map< K, T > &, map< K, T > &) |
Swap proton::map instances. | |
std::string | to_string (const message &) |
Human readable string representation. | |
template<> | |
uint64_t | get< uint64_t > (const message_id &x) |
Get the uint64_t value or throw conversion_error. | |
template<> | |
uuid | get< uuid > (const message_id &x) |
Get the uuid value or throw conversion_error. | |
template<> | |
binary | get< binary > (const message_id &x) |
Get the binary value or throw conversion_error. | |
template<> | |
std::string | get< std::string > (const message_id &x) |
Get the std::string value or throw conversion_error. | |
template<class T > | |
T | coerce (const message_id &x) |
Coerce the contained value to type T. More... | |
std::ostream & | operator<< (std::ostream &, const null &) |
Print a null value. | |
template<class T > | |
T | get (const scalar &s) |
Get a contained value of type T. More... | |
template<class T > | |
T | coerce (const scalar &x) |
Coerce the contained value to type T. More... | |
template<class T > | |
T | coerce (scalar &x) |
Coerce the contained value to type T. More... | |
std::string | to_string (const scalar_base &x) |
Return a readable string representation of x for display purposes. | |
std::ostream & | operator<< (std::ostream &, timestamp) |
Print a timestamp. | |
std::string | to_string (enum transfer::state) |
Human-readalbe name of the transfer::state. | |
std::ostream & | operator<< (std::ostream &, const enum transfer::state) |
Human-readalbe name of the transfer::state. | |
std::string | type_name (type_id) |
Get the name of the AMQP type. | |
std::ostream & | operator<< (std::ostream &, type_id) |
Print the type name. | |
void | assert_type_equal (type_id want, type_id got) |
Throw a conversion_error if want != got with a message including the names of the types. | |
std::ostream & | operator<< (std::ostream &, const uuid &) |
UUID standard format: 8-4-4-4-12 (36 chars, 32 alphanumeric chars and 4 hyphens). | |
std::string | to_string (const uuid &u) |
UUID standard format: 8-4-4-4-12 (36 chars, 32 alphanumeric chars and 4 hyphens). | |
template<class T > | |
T | get (const value &v) |
Get a contained value of type T. More... | |
template<class T > | |
void | get (const value &v, T &x) |
Like get(const value&) but extracts the value to a reference x instead of returning it. More... | |
template<class T , class U > | |
void | get (const U &u, T &x) |
template<class T > | |
T | coerce (const value &v) |
Coerce the contained value to type T. More... | |
template<class T > | |
void | coerce (const value &v, T &x) |
Like coerce(const value&) but assigns the value to a reference instead of returning it. More... | |
template<> | |
void | get< null > (const value &v, null &) |
Special case for null, just checks that value contains NULL. | |
template<> | |
void | get< decltype(nullptr)> (const value &v, decltype(nullptr)&) |
Special case for null, just checks that value contains NULL. | |
std::string | to_string (const value &x) |
Return a readable string representation of x for display purposes. | |
Comparison and arithmetic operators | |
bool | operator< (duration x, duration y) |
bool | operator== (duration x, duration y) |
duration | operator+ (duration x, duration y) |
duration | operator- (duration x, duration y) |
duration | operator* (duration d, uint64_t n) |
duration | operator* (uint64_t n, duration d) |
duration | operator/ (duration d, uint64_t n) |
bool | operator== (timestamp x, timestamp y) |
bool | operator< (timestamp x, timestamp y) |
timestamp | operator+ (timestamp ts, duration d) |
timestamp | operator- (timestamp ts, duration d) |
duration | operator- (timestamp t0, timestamp t1) |
timestamp | operator+ (duration d, timestamp ts) |
Functions to test the properties of a type ID | |
bool | type_id_is_signed_int (type_id t) |
bool | type_id_is_unsigned_int (type_id t) |
bool | type_id_is_integral (type_id t) |
bool | type_id_is_floating_point (type_id t) |
bool | type_id_is_decimal (type_id t) |
bool | type_id_is_signed (type_id t) |
bool | type_id_is_string_like (type_id t) |
bool | type_id_is_container (type_id t) |
bool | type_id_is_null (type_id t) |
bool | type_id_is_scalar (type_id t) |
The main Proton namespace.
enum type_id |
An identifier for AMQP types.
T coerce | ( | const annotation_key & | x | ) |
Get the binary value or throw conversion_error.
Coerce the contained value to type T. For example:
uint64_t i = coerce<uint64_t>(x)
This will succeed if x contains any numeric value, but may lose precision if it contains a float or double value.
conversion_error | if the value cannot be converted to T according to std::is_convertible |
bool proton::operator== | ( | const error_condition & | x, |
const error_condition & | y | ||
) |
T coerce | ( | const message_id & | x | ) |
Coerce the contained value to type T.
For example:
uint64_t i = coerce<uint64_t>(x)
This will succeed if x contains any numeric value, but may lose precision if it contains a float or double value.
conversion_error | if the value cannot be converted to T according to std::is_convertible |
T get | ( | const scalar & | s | ) |
Get a contained value of type T.
For example:
uint64_t i = get<uint64_t>(x)
This will succeed if and only if x contains a uint64_t value.
conversion_error | if contained value is not of type T. |
T coerce | ( | const scalar & | x | ) |
Coerce the contained value to type T.
For example:
uint64_t i = coerce<uint64_t>(x)
This will succeed if x contains any numeric value, but may lose precision if it contains a float or double value.
conversion_error | if the value cannot be converted to T according to std::is_convertible |
T coerce | ( | scalar & | x | ) |
Coerce the contained value to type T.
For example:
uint64_t i = coerce<uint64_t>(x)
This will succeed if x contains any numeric value, but may lose precision if it contains a float or double value.
conversion_error | if the value cannot be converted to T according to std::is_convertible |
T get | ( | const value & | v | ) |
Get a contained value of type T.
For example:
uint64_t i = get<uint64_t>(x)
This will succeed if and only if x contains a uint64_t value.
conversion_error | if contained value is not of type T. |
void get | ( | const value & | v, |
T & | x | ||
) |
Like get(const value&) but extracts the value to a reference x
instead of returning it.
May be more efficient for complex values (arrays, maps, etc.)
T coerce | ( | const value & | v | ) |
Coerce the contained value to type T.
For example:
uint64_t i = coerce<uint64_t>(x)
This will succeed if x contains any numeric value, but may lose precision if it contains a float or double value.
conversion_error | if the value cannot be converted to T according to std::is_convertible |
void coerce | ( | const value & | v, |
T & | x | ||
) |
Like coerce(const value&) but assigns the value to a reference instead of returning it.
May be more efficient for complex values (arrays, maps, etc.)