Apache Qpid - AMQP Messaging for Java JMS, C++, Python, Ruby, and .NET Apache Qpid Documentation
Classes | Public Member Functions | Protected Member Functions | Static Protected Member Functions | List of all members
qpid::framing::FieldValue Class Reference

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
 
DatagetData ()
 
uint32_t encodedSize () const
 
bool empty () const
 
void encode (Buffer &buffer)
 
void decode (Buffer &buffer)
 
bool operator== (const FieldValue &) const
 
QPID_COMMON_INLINE_EXTERN bool operator!= (const FieldValue &v) const
 
void print (std::ostream &out) const
 
template<typename T >
bool convertsTo () const
 
template<typename T >
get () const
 
template<class T , int W>
getIntegerValue () const
 
template<class T >
getIntegerValue () const
 
template<class T , int W>
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. More...
 
template<>
bool convertsTo () const
 
template<>
bool convertsTo () const
 
template<>
int get () const
 
template<>
int64_t get () const
 
template<>
float get () const
 
template<>
double get () const
 

Protected Member Functions

 FieldValue (uint8_t t, Data *d)
 

Static Protected Member Functions

static uint8_tconvertIfRequired (uint8_t *const octets, int width)
 

Detailed Description

Value that can appear in an AMQP field table.

Definition at line 62 of file FieldValue.h.

Constructor & Destructor Documentation

qpid::framing::FieldValue::FieldValue ( )
inline

Definition at line 83 of file FieldValue.h.

qpid::framing::FieldValue::FieldValue ( uint8_t  t,
Data d 
)
inlineprotected

Definition at line 107 of file FieldValue.h.

Member Function Documentation

static uint8_t* qpid::framing::FieldValue::convertIfRequired ( uint8_t *const  octets,
int  width 
)
staticprotected

Referenced by getFloatingPointValue().

template<typename T >
bool qpid::framing::FieldValue::convertsTo ( ) const
inline

Definition at line 97 of file FieldValue.h.

template<>
bool qpid::framing::FieldValue::convertsTo ( ) const
inline

Definition at line 118 of file FieldValue.h.

template<>
bool qpid::framing::FieldValue::convertsTo ( ) const
inline

Definition at line 121 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.

template<typename T >
T qpid::framing::FieldValue::get ( ) const
inline

Definition at line 98 of file FieldValue.h.

template<class T >
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 334 of file FieldValue.h.

References qpid::framing::EncodedValue< T >::getValue().

template<>
int qpid::framing::FieldValue::get ( ) const
inline

Definition at line 127 of file FieldValue.h.

template<>
int64_t qpid::framing::FieldValue::get ( ) const
inline

Definition at line 130 of file FieldValue.h.

template<>
float qpid::framing::FieldValue::get ( ) const
inline

Definition at line 245 of file FieldValue.h.

template<>
double qpid::framing::FieldValue::get ( ) const
inline

Definition at line 250 of file FieldValue.h.

Data& qpid::framing::FieldValue::getData ( )
inline

Definition at line 87 of file FieldValue.h.

template<int W>
void qpid::framing::FieldValue::getFixedWidthValue ( unsigned char *  value) const
template<class T , int W>
T qpid::framing::FieldValue::getFloatingPointValue ( ) const
inline
template<class T , int W>
T qpid::framing::FieldValue::getIntegerValue ( ) const
inline
template<class T >
T qpid::framing::FieldValue::getIntegerValue ( ) const
inline
uint8_t qpid::framing::FieldValue::getType ( ) const
QPID_COMMON_INLINE_EXTERN 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
void qpid::framing::FieldValue::setType ( uint8_t  type)

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

Qpid C++ API Reference
Generated on Tue Sep 2 2014 for Qpid C++ Client API by doxygen 1.8.3.1