|
#include <amqp_value.hpp>
Public Member Functions | |
AmqpValue () noexcept | |
Construct an AMQP null (empty) value. | |
AmqpValue (AmqpValue const &that) noexcept | |
Construct an AMQP Value from an existing AMQP Value. | |
AmqpValue (AmqpValue &&that) noexcept | |
Move an AMQP Value to another existing AMQP Value. | |
AmqpValue & | operator= (AmqpValue const &that) |
Copy an AMQP value to the current AMQP value. | |
AmqpValue & | operator= (AmqpValue &&that) noexcept |
Move an AMQP value to the current AMQP value. | |
AmqpValue (bool value) | |
Construct an AMQP boolean value. | |
AmqpValue (std::uint8_t value) | |
Construct an AMQP ubyte value, an 8 bit unsigned integer. | |
AmqpValue (std::uint16_t value) | |
Construct an AMQP ushort value. | |
AmqpValue (std::uint32_t value) | |
Construct an AMQP uint value. | |
AmqpValue (std::uint64_t value) | |
Construct an AMQP ulong value, a 64bit unsigned integer. | |
AmqpValue (std::int8_t value) | |
Construct an AMQP byte value, an 8 bit signed integer. | |
AmqpValue (char value) | |
Construct an AMQP byte value, an 8 bit signed integer. | |
AmqpValue (std::int16_t value) | |
Construct an AMQP short value, a 16 bit signed integer. | |
AmqpValue (std::int32_t value) | |
Construct an AMQP int value, a 32 bit signed integer. | |
AmqpValue (std::int64_t value) | |
Construct an AMQP long value, a 64 bit signed integer. | |
AmqpValue (float value) | |
Construct an AMQP float value, an IEEE 754-2008 value. | |
AmqpValue (double value) | |
Construct an AMQP double value, an IEEE 754-2008 value. | |
AmqpValue (std::string const &value) | |
Construct an AMQP string value, a UTF-8 encoded sequence of characters. | |
AmqpValue (const char *value) | |
Construct an AMQP string value, a UTF-8 encoded sequence of characters. | |
AmqpValue (char32_t value) | |
Construct an AMQP Char value, a UTF-32BE encoded Unicode character. | |
AmqpValue (Azure::Core::Uuid const &value) | |
Construct an AMQP Uuid value, an RFC-4122 Universally Unique Identifier. | |
bool | operator== (AmqpValue const &that) const |
Equality comparison operator. | |
bool | operator!= (AmqpValue const &that) const |
Equality comparison operator. | |
bool | operator< (AmqpValue const &that) const |
Less Than comparison operator. | |
AmqpValueType | GetType () const |
Returns the underlying type of the AMQP value. | |
bool | IsNull () const |
Returns 'true' if the AMQP value is "null". | |
operator bool () const | |
convert the current AMQP Value to a boolean. | |
operator std::uint8_t () const | |
convert the current AMQP Value to an unsigned 8 bit integer. | |
operator std::int8_t () const | |
convert the current AMQP Value to a signed 8 bit integer. | |
operator char () const | |
convert the current AMQP Value to a signed 8 bit integer. Convenience function to allow an AmqpValue to be constructed from a 'char' value. | |
operator std::uint16_t () const | |
convert the current AMQP Value to an unsigned 16 bit integer. | |
operator std::int16_t () const | |
convert the current AMQP Value to a signed 16 bit integer. | |
operator std::uint32_t () const | |
convert the current AMQP Value to an unsigned 32 bit integer. | |
operator std::int32_t () const | |
convert the current AMQP Value to a signed 32 bit integer. | |
operator std::uint64_t () const | |
convert the current AMQP Value to an unsigned 64 bit integer. | |
operator std::int64_t () const | |
convert the current AMQP Value to a signed 64 bit integer. | |
operator float () const | |
convert the current AMQP Value to a 32 bit IEEE 'float' value.. | |
operator double () const | |
convert the current AMQP Value to a 64 bit IEEE 'double' value. | |
operator char32_t () const | |
convert the current AMQP Value to a 32bit UCS32 value. | |
operator std::string () const | |
convert the current AMQP Value to a string. | |
operator Azure::Core::Uuid () const | |
convert the current AMQP Value to a UUID. | |
AmqpList | AsList () const |
convert the current AMQP Value to an AmqpList. | |
AmqpMap | AsMap () const |
convert the current AMQP Value to an AmqpMap. | |
AmqpArray | AsArray () const |
convert the current AMQP Value to an AmqpArray. | |
AmqpBinaryData | AsBinary () const |
convert the current AMQP Value to an AmqpBinaryData. | |
AmqpTimestamp | AsTimestamp () const |
convert the current AMQP Value to an AmqpTimestamp. | |
AmqpSymbol | AsSymbol () const |
convert the current AMQP Value to an AmqpSymbol. | |
AmqpComposite | AsComposite () const |
convert the current AMQP Value to an AMQP Composite value. | |
AmqpDescribed | AsDescribed () const |
convert the current AMQP Value to an AMQP Described value. | |
Static Public Member Functions | |
static std::vector< uint8_t > | Serialize (AmqpValue const &value) |
Serialize this AMQP value as an array of bytes. | |
static size_t | GetSerializedSize (AmqpValue const &value) |
Returns the size (in bytes) of the serialized form of this value. | |
static AmqpValue | Deserialize (uint8_t const *data, size_t size) |
Deserialize an AMQP value from an array of bytes. | |
An AMQP value.
An AMQP value is a polymorphic type that can be used to represent any AMQP type.
|
noexcept |
Defined in AMQP Core Types section 1.6.1.
|
noexcept |
that | - source value to copy. |
|
noexcept |
that | - source value to move. |
Azure::Core::Amqp::Models::AmqpValue::AmqpValue | ( | bool | value | ) |
Defined in AMQP Core Types section 1.6.2.
value | value to be set. |
Azure::Core::Amqp::Models::AmqpValue::AmqpValue | ( | std::uint8_t | value | ) |
Defined in AMQP Core Types section 1.6.3.
value | value to be set. |
Azure::Core::Amqp::Models::AmqpValue::AmqpValue | ( | std::uint16_t | value | ) |
Defined in AMQP Core Types section 1.6.4.
value | value to be set. |
Azure::Core::Amqp::Models::AmqpValue::AmqpValue | ( | std::uint32_t | value | ) |
Defined in AMQP Core Types section 1.6.5.
value | value to be set. |
Azure::Core::Amqp::Models::AmqpValue::AmqpValue | ( | std::uint64_t | value | ) |
Defined in AMQP Core Types section 1.6.6.
value | value to be set. |
Azure::Core::Amqp::Models::AmqpValue::AmqpValue | ( | std::int8_t | value | ) |
Defined in AMQP Core Types section 1.6.7.
value | value to be set. |
Azure::Core::Amqp::Models::AmqpValue::AmqpValue | ( | char | value | ) |
Defined in AMQP Core Types section 1.6.7.
value | value to be set. |
Azure::Core::Amqp::Models::AmqpValue::AmqpValue | ( | std::int16_t | value | ) |
Defined in AMQP Core Types section 1.6.8.
value | value to be set. |
Azure::Core::Amqp::Models::AmqpValue::AmqpValue | ( | std::int32_t | value | ) |
Defined in AMQP Core Types section 1.6.9.
value | value to be set. |
Azure::Core::Amqp::Models::AmqpValue::AmqpValue | ( | std::int64_t | value | ) |
Defined in AMQP Core Types section 1.6.10.
value | value to be set. |
Azure::Core::Amqp::Models::AmqpValue::AmqpValue | ( | float | value | ) |
Defined in AMQP Core Types section 1.6.11.
value | value to be set. |
Azure::Core::Amqp::Models::AmqpValue::AmqpValue | ( | double | value | ) |
Defined in AMQP Core Types section 1.6.12.
value | value to be set. |
|
explicit |
Defined in AMQP Core Types section 1.6.20.
value | to be set. |
Azure::Core::Amqp::Models::AmqpValue::AmqpValue | ( | const char * | value | ) |
Defined in AMQP Core Types section 1.6.20.
value | to be set. |
Azure::Core::Amqp::Models::AmqpValue::AmqpValue | ( | char32_t | value | ) |
Defined in AMQP Core Types section 1.6.16.
value | UTF-32 encoded unicode value to be set. |
Azure::Core::Amqp::Models::AmqpValue::AmqpValue | ( | Azure::Core::Uuid const & | value | ) |
TODO: Decimal32, Decimal64, and Decimal128.
Defined in AMQP Core Types section 1.6.18.
value | UTF-32 encoded unicode value to be set. |
AmqpArray Azure::Core::Amqp::Models::AmqpValue::AsArray | ( | ) | const |
std::runtime_error | if the underlying AMQP value is not an array. |
AmqpBinaryData Azure::Core::Amqp::Models::AmqpValue::AsBinary | ( | ) | const |
std::runtime_error | if the underlying AMQP value is not a binary data. |
AmqpComposite Azure::Core::Amqp::Models::AmqpValue::AsComposite | ( | ) | const |
An AMQP Composite value is functionally a list with a defined structure. The structure definition can be found via the GetDescriptor method.
std::runtime_error | if the underlying AMQP value is not a Composite value. |
AmqpDescribed Azure::Core::Amqp::Models::AmqpValue::AsDescribed | ( | ) | const |
An AMQP Described value is a tuple consisting of a Descriptor and Value.
std::runtime_error | if the underlying AMQP value is not a Described value. |
AmqpList Azure::Core::Amqp::Models::AmqpValue::AsList | ( | ) | const |
std::runtime_error | if the underlying AMQP value is not a list. |
AmqpMap Azure::Core::Amqp::Models::AmqpValue::AsMap | ( | ) | const |
std::runtime_error | if the underlying AMQP value is not a map. |
AmqpSymbol Azure::Core::Amqp::Models::AmqpValue::AsSymbol | ( | ) | const |
std::runtime_error | if the underlying AMQP value is not a symbol. |
AmqpTimestamp Azure::Core::Amqp::Models::AmqpValue::AsTimestamp | ( | ) | const |
std::runtime_error | if the underlying AMQP value is not a timestamp. |
|
static |
[in] | data | The serialized form of the AMQP value to deserialize. |
[in] | size | The size of the data parameter to deserialize. |
AmqpValueType Azure::Core::Amqp::Models::AmqpValue::GetType | ( | ) | const |
bool Azure::Core::Amqp::Models::AmqpValue::IsNull | ( | ) | const |
Azure::Core::Amqp::Models::AmqpValue::operator Azure::Core::Uuid | ( | ) | const |
std::runtime_error | if the underlying AMQP value is not a UUID. |
Azure::Core::Amqp::Models::AmqpValue::operator bool | ( | ) | const |
std::runtime_error | if the underlying AMQP value is not a boolean. |
Azure::Core::Amqp::Models::AmqpValue::operator char | ( | ) | const |
std::runtime_error | if the underlying AMQP value is not a signed 8 bit integer. |
Azure::Core::Amqp::Models::AmqpValue::operator char32_t | ( | ) | const |
std::runtime_error | if the underlying AMQP value is not a 32 bit character. |
Azure::Core::Amqp::Models::AmqpValue::operator double | ( | ) | const |
std::runtime_error | if the underlying AMQP value is not a double. |
Azure::Core::Amqp::Models::AmqpValue::operator float | ( | ) | const |
std::runtime_error | if the underlying AMQP value is not a float. |
Azure::Core::Amqp::Models::AmqpValue::operator std::int16_t | ( | ) | const |
std::runtime_error | if the underlying AMQP value is not a signed 16 bit integer. |
Azure::Core::Amqp::Models::AmqpValue::operator std::int32_t | ( | ) | const |
std::runtime_error | if the underlying AMQP value is not a signed 32 bit integer. |
Azure::Core::Amqp::Models::AmqpValue::operator std::int64_t | ( | ) | const |
std::runtime_error | if the underlying AMQP value is not a signed 64 bit integer. |
Azure::Core::Amqp::Models::AmqpValue::operator std::int8_t | ( | ) | const |
std::runtime_error | if the underlying AMQP value is not a signed 8 bit integer. |
|
explicit |
std::runtime_error | if the underlying AMQP value is not a string. |
Azure::Core::Amqp::Models::AmqpValue::operator std::uint16_t | ( | ) | const |
std::runtime_error | if the underlying AMQP value is not an unsigned 16 bit integer. |
Azure::Core::Amqp::Models::AmqpValue::operator std::uint32_t | ( | ) | const |
std::runtime_error | if the underlying AMQP value is not an unsigned 32 bit integer. |
Azure::Core::Amqp::Models::AmqpValue::operator std::uint64_t | ( | ) | const |
std::runtime_error | if the underlying AMQP value is not an unsigned 64 bit integer. |
Azure::Core::Amqp::Models::AmqpValue::operator std::uint8_t | ( | ) | const |
std::runtime_error | if the underlying AMQP value is not an unsigned 8 bit integer. |
|
inline |
that | - Value to compare to this value. |
bool Azure::Core::Amqp::Models::AmqpValue::operator< | ( | AmqpValue const & | that | ) | const |
that | - Value to compare to this value. |
that | the other AMQP Value to move. |
that | the other AMQP Value to copy. |
bool Azure::Core::Amqp::Models::AmqpValue::operator== | ( | AmqpValue const & | that | ) | const |
that | - Value to compare to this value. |