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

qpid::framing::ExchangeDeclareBody Class Reference

#include <ExchangeDeclareBody.h>

Inherits qpid::framing::ModelMethod.

List of all members.

Public Types

typedef void ResultType

Public Member Functions

 ExchangeDeclareBody (ProtocolVersion, const string &_exchange, const string &_type, const string &_alternateExchange, bool _passive, bool _durable, bool _autoDelete, const FieldTable &_arguments)
 ExchangeDeclareBody (ProtocolVersion=ProtocolVersion())
void setExchange (const string &_exchange)
const string & getExchange () const
bool hasExchange () const
void clearExchangeFlag ()
void setType (const string &_type)
const string & getType () const
bool hasType () const
void clearTypeFlag ()
void setAlternateExchange (const string &_alternateExchange)
const string & getAlternateExchange () const
bool hasAlternateExchange () const
void clearAlternateExchangeFlag ()
void setPassive (bool _passive)
bool getPassive () const
void setDurable (bool _durable)
bool getDurable () const
void setAutoDelete (bool _autoDelete)
bool getAutoDelete () const
void setArguments (const FieldTable &_arguments)
const FieldTablegetArguments () const
FieldTablegetArguments ()
bool hasArguments () const
void clearArgumentsFlag ()
template<class T>
ResultType invoke (T &invocable) const
void accept (MethodBodyConstVisitor &v) const
boost::intrusive_ptr< AMQBodyclone () const
ClassId amqpClassId () const
MethodId amqpMethodId () const
bool isContentBearing () const
bool resultExpected () const
bool responseExpected () const
void encode (Buffer &) const
void decode (Buffer &, uint32_t=0)
void encodeStructBody (Buffer &) const
void decodeStructBody (Buffer &, uint32_t=0)
uint32_t encodedSize () const
uint32_t bodySize () const
void print (std::ostream &out) const
virtual void encodeHeader (Buffer &buffer) const
virtual void decodeHeader (Buffer &buffer, uint32_t size=0)
virtual uint32_t headerSize () const
virtual bool isSync () const
virtual void setSync (bool on) const
HeadergetHeader ()
const HeadergetHeader () const
void accept (AMQBodyConstVisitor &v) const
template<class T>
bool isA () const
virtual uint8_t type () const
AMQMethodBodygetMethod ()
const AMQMethodBodygetMethod () const

Static Public Member Functions

static bool match (const AMQBody &, const AMQBody &)
 Match if same type and same class/method ID for methods.

Static Public Attributes

static const ClassId CLASS_ID = 0x7
static const MethodId METHOD_ID = 0x1


Detailed Description

Definition at line 41 of file ExchangeDeclareBody.h.


Member Typedef Documentation

typedef void qpid::framing::ExchangeDeclareBody::ResultType

Definition at line 96 of file ExchangeDeclareBody.h.


Constructor & Destructor Documentation

qpid::framing::ExchangeDeclareBody::ExchangeDeclareBody ( ProtocolVersion  ,
const string &  _exchange,
const string &  _type,
const string &  _alternateExchange,
bool  _passive,
bool  _durable,
bool  _autoDelete,
const FieldTable _arguments 
) [inline]

Definition at line 50 of file ExchangeDeclareBody.h.

References setAutoDelete(), setDurable(), and setPassive().

qpid::framing::ExchangeDeclareBody::ExchangeDeclareBody ( ProtocolVersion  = ProtocolVersion()  )  [inline]

Definition at line 71 of file ExchangeDeclareBody.h.


Member Function Documentation

void qpid::framing::AMQMethodBody::accept ( AMQBodyConstVisitor v  )  const [inline, virtual, inherited]

Implements qpid::framing::AMQBody.

Definition at line 65 of file AMQMethodBody.h.

References qpid::framing::AMQBodyConstVisitor::visit().

void qpid::framing::ExchangeDeclareBody::accept ( MethodBodyConstVisitor v  )  const [inline, virtual]

Implements qpid::framing::AMQMethodBody.

Definition at line 103 of file ExchangeDeclareBody.h.

References qpid::framing::MethodBodyConstVisitor::visit().

ClassId qpid::framing::ExchangeDeclareBody::amqpClassId (  )  const [inline, virtual]

Implements qpid::framing::AMQMethodBody.

Definition at line 106 of file ExchangeDeclareBody.h.

References CLASS_ID.

MethodId qpid::framing::ExchangeDeclareBody::amqpMethodId (  )  const [inline, virtual]

Implements qpid::framing::AMQMethodBody.

Definition at line 107 of file ExchangeDeclareBody.h.

References METHOD_ID.

uint32_t qpid::framing::ExchangeDeclareBody::bodySize (  )  const

void qpid::framing::ExchangeDeclareBody::clearAlternateExchangeFlag (  ) 

void qpid::framing::ExchangeDeclareBody::clearArgumentsFlag (  ) 

void qpid::framing::ExchangeDeclareBody::clearExchangeFlag (  ) 

void qpid::framing::ExchangeDeclareBody::clearTypeFlag (  ) 

boost::intrusive_ptr<AMQBody> qpid::framing::ExchangeDeclareBody::clone (  )  const [inline, virtual]

Implements qpid::framing::AMQBody.

Definition at line 104 of file ExchangeDeclareBody.h.

References qpid::framing::BodyFactory::copy().

void qpid::framing::ExchangeDeclareBody::decode ( Buffer ,
uint32_t  = 0 
) [virtual]

Implements qpid::framing::AMQBody.

virtual void qpid::framing::ModelMethod::decodeHeader ( Buffer buffer,
uint32_t  size = 0 
) [inline, virtual, inherited]

Definition at line 37 of file ModelMethod.h.

References qpid::framing::Header::decode().

void qpid::framing::ExchangeDeclareBody::decodeStructBody ( Buffer ,
uint32_t  = 0 
)

void qpid::framing::ExchangeDeclareBody::encode ( Buffer  )  const [virtual]

Implements qpid::framing::AMQBody.

uint32_t qpid::framing::ExchangeDeclareBody::encodedSize (  )  const [virtual]

Implements qpid::framing::AMQMethodBody.

virtual void qpid::framing::ModelMethod::encodeHeader ( Buffer buffer  )  const [inline, virtual, inherited]

Definition at line 36 of file ModelMethod.h.

References qpid::framing::Header::encode().

void qpid::framing::ExchangeDeclareBody::encodeStructBody ( Buffer  )  const

const string& qpid::framing::ExchangeDeclareBody::getAlternateExchange (  )  const

Referenced by invoke().

FieldTable& qpid::framing::ExchangeDeclareBody::getArguments (  ) 

const FieldTable& qpid::framing::ExchangeDeclareBody::getArguments (  )  const

Referenced by invoke().

bool qpid::framing::ExchangeDeclareBody::getAutoDelete (  )  const

Referenced by invoke().

bool qpid::framing::ExchangeDeclareBody::getDurable (  )  const

Referenced by invoke().

const string& qpid::framing::ExchangeDeclareBody::getExchange (  )  const

Referenced by invoke().

const Header& qpid::framing::ModelMethod::getHeader (  )  const [inline, inherited]

Definition at line 42 of file ModelMethod.h.

Header& qpid::framing::ModelMethod::getHeader (  )  [inline, inherited]

Definition at line 41 of file ModelMethod.h.

const AMQMethodBody* qpid::framing::AMQMethodBody::getMethod (  )  const [inline, virtual, inherited]

Reimplemented from qpid::framing::AMQBody.

Definition at line 64 of file AMQMethodBody.h.

AMQMethodBody* qpid::framing::AMQMethodBody::getMethod (  )  [inline, virtual, inherited]

Reimplemented from qpid::framing::AMQBody.

Definition at line 63 of file AMQMethodBody.h.

bool qpid::framing::ExchangeDeclareBody::getPassive (  )  const

Referenced by invoke().

const string& qpid::framing::ExchangeDeclareBody::getType (  )  const

Referenced by invoke().

bool qpid::framing::ExchangeDeclareBody::hasAlternateExchange (  )  const

bool qpid::framing::ExchangeDeclareBody::hasArguments (  )  const

bool qpid::framing::ExchangeDeclareBody::hasExchange (  )  const

bool qpid::framing::ExchangeDeclareBody::hasType (  )  const

virtual uint32_t qpid::framing::ModelMethod::headerSize (  )  const [inline, virtual, inherited]

Definition at line 38 of file ModelMethod.h.

References qpid::framing::Header::encodedSize().

template<class T>
ResultType qpid::framing::ExchangeDeclareBody::invoke ( T &  invocable  )  const [inline]

Definition at line 98 of file ExchangeDeclareBody.h.

References getAlternateExchange(), getArguments(), getAutoDelete(), getDurable(), getExchange(), getPassive(), and getType().

template<class T>
bool qpid::framing::AMQMethodBody::isA (  )  const [inline, inherited]

Definition at line 53 of file AMQMethodBody.h.

References qpid::framing::AMQMethodBody::amqpClassId(), and qpid::framing::AMQMethodBody::amqpMethodId().

Referenced by qpid::framing::FrameSet::as(), and qpid::framing::FrameSet::isA().

bool qpid::framing::ExchangeDeclareBody::isContentBearing (  )  const [inline, virtual]

Implements qpid::framing::AMQMethodBody.

Definition at line 108 of file ExchangeDeclareBody.h.

virtual bool qpid::framing::ModelMethod::isSync (  )  const [inline, virtual, inherited]

Reimplemented from qpid::framing::AMQMethodBody.

Definition at line 39 of file ModelMethod.h.

References qpid::framing::Header::getSync().

static bool qpid::framing::AMQBody::match ( const AMQBody ,
const AMQBody  
) [static, inherited]

Match if same type and same class/method ID for methods.

void qpid::framing::ExchangeDeclareBody::print ( std::ostream &  out  )  const [virtual]

Implements qpid::framing::AMQBody.

bool qpid::framing::ExchangeDeclareBody::responseExpected (  )  const [inline, virtual]

Implements qpid::framing::AMQMethodBody.

Definition at line 110 of file ExchangeDeclareBody.h.

bool qpid::framing::ExchangeDeclareBody::resultExpected (  )  const [inline, virtual]

Implements qpid::framing::AMQMethodBody.

Definition at line 109 of file ExchangeDeclareBody.h.

void qpid::framing::ExchangeDeclareBody::setAlternateExchange ( const string &  _alternateExchange  ) 

void qpid::framing::ExchangeDeclareBody::setArguments ( const FieldTable _arguments  ) 

void qpid::framing::ExchangeDeclareBody::setAutoDelete ( bool  _autoDelete  ) 

Referenced by ExchangeDeclareBody().

void qpid::framing::ExchangeDeclareBody::setDurable ( bool  _durable  ) 

Referenced by ExchangeDeclareBody().

void qpid::framing::ExchangeDeclareBody::setExchange ( const string &  _exchange  ) 

void qpid::framing::ExchangeDeclareBody::setPassive ( bool  _passive  ) 

Referenced by ExchangeDeclareBody().

virtual void qpid::framing::ModelMethod::setSync ( bool  on  )  const [inline, virtual, inherited]

Reimplemented from qpid::framing::AMQMethodBody.

Definition at line 40 of file ModelMethod.h.

References qpid::framing::Header::setSync().

void qpid::framing::ExchangeDeclareBody::setType ( const string &  _type  ) 

virtual uint8_t qpid::framing::AMQMethodBody::type (  )  const [inline, virtual, inherited]

Implements qpid::framing::AMQBody.

Reimplemented in qpid::framing::ConnectionCloseBody, qpid::framing::ConnectionCloseOkBody, qpid::framing::ConnectionHeartbeatBody, qpid::framing::ConnectionOpenBody, qpid::framing::ConnectionOpenOkBody, qpid::framing::ConnectionRedirectBody, qpid::framing::ConnectionSecureBody, qpid::framing::ConnectionSecureOkBody, qpid::framing::ConnectionStartBody, qpid::framing::ConnectionStartOkBody, qpid::framing::ConnectionTuneBody, qpid::framing::ConnectionTuneOkBody, qpid::framing::SessionAttachBody, qpid::framing::SessionAttachedBody, qpid::framing::SessionCommandPointBody, qpid::framing::SessionCompletedBody, qpid::framing::SessionConfirmedBody, qpid::framing::SessionDetachBody, qpid::framing::SessionDetachedBody, qpid::framing::SessionExpectedBody, qpid::framing::SessionFlushBody, qpid::framing::SessionGapBody, qpid::framing::SessionKnownCompletedBody, qpid::framing::SessionRequestTimeoutBody, and qpid::framing::SessionTimeoutBody.

Definition at line 58 of file AMQMethodBody.h.

References qpid::framing::METHOD_BODY.


Member Data Documentation

const ClassId qpid::framing::ExchangeDeclareBody::CLASS_ID = 0x7 [static]

Definition at line 48 of file ExchangeDeclareBody.h.

Referenced by amqpClassId().

const MethodId qpid::framing::ExchangeDeclareBody::METHOD_ID = 0x1 [static]

Definition at line 49 of file ExchangeDeclareBody.h.

Referenced by amqpMethodId().


The documentation for this class was generated from the following file:
Qpid C++ API Reference
Generated on Tue Dec 8 15:39:52 2009 for Qpid C++ Client API by doxygen 1.4.7