Apache Qpid C++ API
Apache Qpid - AMQP Messaging for Java JMS, C++, Python, Ruby, and .NET Apache Qpid Documentation

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

 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
void set (const std::string &name, const ValuePtr &value)
ValuePtr get (const std::string &name) const
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::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::iterator qpid::framing::FieldTable::begin (  )  [inline]

Definition at line 104 of file FieldTable.h.

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

Definition at line 100 of file FieldTable.h.

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

Definition at line 110 of file FieldTable.h.

int qpid::framing::FieldTable::count (  )  const
void qpid::framing::FieldTable::decode ( Buffer buffer  ) 
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 105 of file FieldTable.h.

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

Definition at line 101 of file FieldTable.h.

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

Definition at line 106 of file FieldTable.h.

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

Definition at line 102 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 114 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 &   ) 
bool qpid::framing::FieldTable::isSet ( const std::string &  name  )  const [inline]

Definition at line 70 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 
)

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 Jun 7 17:49:09 2010 for Qpid C++ Client API by doxygen 1.6.2-20100208