Apache Qpid - AMQP Messaging for Java JMS, C++, Python, Ruby, and .NET Apache Qpid Documentation
Public Types | Public Member Functions | Friends
qpid::framing::FieldTable Class Reference

A set of name-value pairs. More...

#include <qpid/framing/FieldTable.h>

List of all members.

Public Types

typedef boost::shared_ptr
< FieldValue
ValuePtr
typedef std::map< std::string,
ValuePtr
ValueMap
typedef ValueMap::iterator iterator
typedef ValueMap::const_iterator const_iterator
typedef ValueMap::const_reference const_reference
typedef ValueMap::reference reference
typedef ValueMap::value_type value_type

Public Member Functions

QPID_COMMON_INLINE_EXTERN FieldTable ()
 FieldTable (const FieldTable &ft)
 ~FieldTable ()
FieldTableoperator= (const FieldTable &ft)
uint32_t encodedSize () const
void encode (Buffer &buffer) const
void decode (Buffer &buffer)
int count () const
size_t size () const
bool empty ()
void set (const std::string &name, const ValuePtr &value)
ValuePtr get (const std::string &name) const
QPID_COMMON_INLINE_EXTERN bool isSet (const std::string &name) const
void setString (const std::string &name, const std::string &value)
void setInt (const std::string &name, const int value)
void setInt64 (const std::string &name, const int64_t value)
void setTimestamp (const std::string &name, const uint64_t value)
void setUInt64 (const std::string &name, const uint64_t value)
void setTable (const std::string &name, const FieldTable &value)
void setArray (const std::string &name, const Array &value)
void setFloat (const std::string &name, const float value)
void setDouble (const std::string &name, const double value)
int getAsInt (const std::string &name) const
uint64_t getAsUInt64 (const std::string &name) const
int64_t getAsInt64 (const std::string &name) const
std::string getAsString (const std::string &name) const
bool getTable (const std::string &name, FieldTable &value) const
bool getArray (const std::string &name, Array &value) const
bool getFloat (const std::string &name, float &value) const
bool getDouble (const std::string &name, double &value) const
void erase (const std::string &name)
bool operator== (const FieldTable &other) const
ValueMap::const_iterator begin () const
ValueMap::const_iterator end () const
ValueMap::const_iterator find (const std::string &s) const
ValueMap::iterator begin ()
ValueMap::iterator end ()
ValueMap::iterator find (const std::string &s)
std::pair< ValueMap::iterator,
bool > 
insert (const ValueMap::value_type &)
ValueMap::iterator insert (ValueMap::iterator, const ValueMap::value_type &)
void clear ()
ValueMap::iterator getValues ()

Friends

std::ostream & operator<< (std::ostream &out, const FieldTable &body)

Detailed Description

A set of name-value pairs.

(See the AMQP spec for more details on AMQP field tables).

Definition at line 48 of file FieldTable.h.


Member Typedef Documentation

typedef ValueMap::const_iterator qpid::framing::FieldTable::const_iterator

Definition at line 54 of file FieldTable.h.

typedef ValueMap::const_reference qpid::framing::FieldTable::const_reference

Definition at line 55 of file FieldTable.h.

typedef ValueMap::iterator qpid::framing::FieldTable::iterator

Definition at line 53 of file FieldTable.h.

typedef ValueMap::reference qpid::framing::FieldTable::reference

Definition at line 56 of file FieldTable.h.

typedef ValueMap::value_type qpid::framing::FieldTable::value_type

Definition at line 57 of file FieldTable.h.

typedef std::map<std::string, ValuePtr> qpid::framing::FieldTable::ValueMap

Definition at line 52 of file FieldTable.h.

typedef boost::shared_ptr<FieldValue> qpid::framing::FieldTable::ValuePtr

Definition at line 51 of file FieldTable.h.


Constructor & Destructor Documentation

QPID_COMMON_INLINE_EXTERN qpid::framing::FieldTable::FieldTable ( ) [inline]

Definition at line 59 of file FieldTable.h.

qpid::framing::FieldTable::FieldTable ( const FieldTable ft)
qpid::framing::FieldTable::~FieldTable ( )

Member Function Documentation

ValueMap::const_iterator qpid::framing::FieldTable::begin ( ) const [inline]

Definition at line 102 of file FieldTable.h.

ValueMap::iterator qpid::framing::FieldTable::begin ( ) [inline]

Definition at line 106 of file FieldTable.h.

void qpid::framing::FieldTable::clear ( ) [inline]

Definition at line 112 of file FieldTable.h.

int qpid::framing::FieldTable::count ( ) const
void qpid::framing::FieldTable::decode ( Buffer buffer)
bool qpid::framing::FieldTable::empty ( ) [inline]

Definition at line 69 of file FieldTable.h.

References size().

void qpid::framing::FieldTable::encode ( Buffer buffer) const
uint32_t qpid::framing::FieldTable::encodedSize ( ) const
ValueMap::iterator qpid::framing::FieldTable::end ( ) [inline]

Definition at line 107 of file FieldTable.h.

ValueMap::const_iterator qpid::framing::FieldTable::end ( ) const [inline]

Definition at line 103 of file FieldTable.h.

void qpid::framing::FieldTable::erase ( const std::string &  name)
ValueMap::const_iterator qpid::framing::FieldTable::find ( const std::string &  s) const [inline]

Definition at line 104 of file FieldTable.h.

ValueMap::iterator qpid::framing::FieldTable::find ( const std::string &  s) [inline]

Definition at line 108 of file FieldTable.h.

ValuePtr qpid::framing::FieldTable::get ( const std::string &  name) const
bool qpid::framing::FieldTable::getArray ( const std::string &  name,
Array value 
) const
int qpid::framing::FieldTable::getAsInt ( const std::string &  name) const
int64_t qpid::framing::FieldTable::getAsInt64 ( const std::string &  name) const
std::string qpid::framing::FieldTable::getAsString ( const std::string &  name) const
uint64_t qpid::framing::FieldTable::getAsUInt64 ( const std::string &  name) const
bool qpid::framing::FieldTable::getDouble ( const std::string &  name,
double &  value 
) const
bool qpid::framing::FieldTable::getFloat ( const std::string &  name,
float &  value 
) const
bool qpid::framing::FieldTable::getTable ( const std::string &  name,
FieldTable value 
) const
ValueMap::iterator qpid::framing::FieldTable::getValues ( ) [inline]

Definition at line 116 of file FieldTable.h.

ValueMap::iterator qpid::framing::FieldTable::insert ( ValueMap::iterator  ,
const ValueMap::value_type &   
)
std::pair<ValueMap::iterator, bool> qpid::framing::FieldTable::insert ( const ValueMap::value_type &  )
QPID_COMMON_INLINE_EXTERN bool qpid::framing::FieldTable::isSet ( const std::string &  name) const [inline]

Definition at line 72 of file FieldTable.h.

FieldTable& qpid::framing::FieldTable::operator= ( const FieldTable ft)
bool qpid::framing::FieldTable::operator== ( const FieldTable other) const
void qpid::framing::FieldTable::set ( const std::string &  name,
const ValuePtr value 
)
void qpid::framing::FieldTable::setArray ( const std::string &  name,
const Array value 
)
void qpid::framing::FieldTable::setDouble ( const std::string &  name,
const double  value 
)
void qpid::framing::FieldTable::setFloat ( const std::string &  name,
const float  value 
)
void qpid::framing::FieldTable::setInt ( const std::string &  name,
const int  value 
)
void qpid::framing::FieldTable::setInt64 ( const std::string &  name,
const int64_t  value 
)
void qpid::framing::FieldTable::setString ( const std::string &  name,
const std::string &  value 
)
void qpid::framing::FieldTable::setTable ( const std::string &  name,
const FieldTable value 
)
void qpid::framing::FieldTable::setTimestamp ( const std::string &  name,
const uint64_t  value 
)
void qpid::framing::FieldTable::setUInt64 ( const std::string &  name,
const uint64_t  value 
)
size_t qpid::framing::FieldTable::size ( ) const [inline]

Definition at line 68 of file FieldTable.h.

Referenced by empty().


Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  out,
const FieldTable body 
) [friend]

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

Qpid C++ API Reference
Generated on Mon Aug 22 2011 for Qpid C++ Client API by doxygen 1.7.4