Apache Qpid - AMQP Messaging for Java JMS, C++, Python, Ruby, and .NET | Apache Qpid Documentation |
Value that can appear in an AMQP field table. More...
#include <qpid/framing/FieldValue.h>
Classes | |
class | Data |
Public Member Functions | |
FieldValue () | |
void | setType (uint8_t type) |
uint8_t | getType () const |
Data & | getData () |
uint32_t | encodedSize () const |
bool | empty () const |
void | encode (Buffer &buffer) |
void | decode (Buffer &buffer) |
bool | operator== (const FieldValue &) const |
bool | operator!= (const FieldValue &v) const |
void | print (std::ostream &out) const |
template<typename T > | |
bool | convertsTo () const |
template<typename T > | |
T | get () const |
template<class T , int W> | |
T | getIntegerValue () const |
template<class T , int W> | |
T | getFloatingPointValue () const |
template<int W> | |
void | getFixedWidthValue (unsigned char *) const |
template<class T > | |
bool | get (T &) const |
Accessor that can be used to get values of type FieldTable, Array and List. | |
Protected Member Functions | |
FieldValue (uint8_t t, Data *d) | |
Static Protected Member Functions | |
static uint8_t * | convertIfRequired (uint8_t *const octets, int width) |
Value that can appear in an AMQP field table.
Definition at line 62 of file FieldValue.h.
qpid::framing::FieldValue::FieldValue | ( | ) | [inline] |
Definition at line 83 of file FieldValue.h.
Definition at line 106 of file FieldValue.h.
static uint8_t* qpid::framing::FieldValue::convertIfRequired | ( | uint8_t *const | octets, | |
int | width | |||
) | [static, protected] |
Referenced by getFloatingPointValue().
bool qpid::framing::FieldValue::convertsTo< int64_t > | ( | ) | const [inline] |
Definition at line 97 of file FieldValue.h.
void qpid::framing::FieldValue::decode | ( | Buffer & | buffer | ) |
bool qpid::framing::FieldValue::empty | ( | ) | const [inline] |
Definition at line 89 of file FieldValue.h.
void qpid::framing::FieldValue::encode | ( | Buffer & | buffer | ) |
uint32_t qpid::framing::FieldValue::encodedSize | ( | ) | const [inline] |
Definition at line 88 of file FieldValue.h.
bool qpid::framing::FieldValue::get | ( | T & | t | ) | const [inline] |
Accessor that can be used to get values of type FieldTable, Array and List.
Definition at line 312 of file FieldValue.h.
References qpid::framing::EncodedValue< T >::getValue().
double qpid::framing::FieldValue::get< double > | ( | ) | const [inline] |
Definition at line 98 of file FieldValue.h.
Data& qpid::framing::FieldValue::getData | ( | ) | [inline] |
Definition at line 87 of file FieldValue.h.
void qpid::framing::FieldValue::getFixedWidthValue | ( | unsigned char * | value | ) | const [inline] |
Definition at line 213 of file FieldValue.h.
References qpid::framing::FixedWidthValue< width >::rawOctets().
T qpid::framing::FieldValue::getFloatingPointValue | ( | ) | const [inline] |
Definition at line 200 of file FieldValue.h.
References convertIfRequired(), and qpid::framing::FixedWidthValue< width >::rawOctets().
T qpid::framing::FieldValue::getIntegerValue | ( | ) | const [inline] |
Definition at line 183 of file FieldValue.h.
References qpid::framing::FixedWidthValue< width >::rawOctets().
uint8_t qpid::framing::FieldValue::getType | ( | ) | const |
bool qpid::framing::FieldValue::operator!= | ( | const FieldValue & | v | ) | const [inline] |
Definition at line 93 of file FieldValue.h.
bool qpid::framing::FieldValue::operator== | ( | const FieldValue & | ) | const |
void qpid::framing::FieldValue::print | ( | std::ostream & | out | ) | const |
Referenced by qpid::framing::operator<<().
void qpid::framing::FieldValue::setType | ( | uint8_t | type | ) |