activemq-cpp-3.4.0

activemq::commands::DataResponse Class Reference

#include <src/main/activemq/commands/DataResponse.h>

Inheritance diagram for activemq::commands::DataResponse:

Public Member Functions

 DataResponse ()
virtual ~DataResponse ()
virtual unsigned char getDataStructureType () const
 Get the DataStructure Type as defined in CommandTypes.h.
virtual DataResponsecloneDataStructure () const
 Clone this obbject and return a new instance that the caller now owns, this will be an exact copy of this one.
virtual void copyDataStructure (const DataStructure *src)
 Copy the contents of the passed object into this objects members, overwriting any existing data.
virtual std::string toString () const
 Returns a string containing the information for this DataStructure such as its type and value of its elements.
virtual bool equals (const DataStructure *value) const
 Compares the DataStructure passed in to this one, and returns if they are equivalent.
virtual const Pointer
< DataStructure > & 
getData () const
virtual Pointer< DataStructure > & getData ()
virtual void setData (const Pointer< DataStructure > &data)

Static Public Attributes

static const unsigned char ID_DATARESPONSE = 32

Protected Attributes

Pointer< DataStructuredata

Constructor & Destructor Documentation

activemq::commands::DataResponse::DataResponse ( )
virtual activemq::commands::DataResponse::~DataResponse ( ) [virtual]

Member Function Documentation

virtual DataResponse* activemq::commands::DataResponse::cloneDataStructure ( ) const [virtual]

Clone this obbject and return a new instance that the caller now owns, this will be an exact copy of this one.

Returns:
new copy of this object.

Reimplemented from activemq::commands::Response.

virtual void activemq::commands::DataResponse::copyDataStructure ( const DataStructure src) [virtual]

Copy the contents of the passed object into this objects members, overwriting any existing data.

Returns:
src - Source Object

Reimplemented from activemq::commands::Response.

virtual bool activemq::commands::DataResponse::equals ( const DataStructure value) const [virtual]

Compares the DataStructure passed in to this one, and returns if they are equivalent.

Equivalent here means that they are of the same type, and that each element of the objects are the same.

Returns:
true if DataStructure's are Equal.

Reimplemented from activemq::commands::Response.

virtual Pointer<DataStructure>& activemq::commands::DataResponse::getData ( ) [virtual]
virtual const Pointer<DataStructure>& activemq::commands::DataResponse::getData ( ) const [virtual]
virtual unsigned char activemq::commands::DataResponse::getDataStructureType ( ) const [virtual]

Get the DataStructure Type as defined in CommandTypes.h.

Returns:
The type of the data structure

Reimplemented from activemq::commands::Response.

virtual void activemq::commands::DataResponse::setData ( const Pointer< DataStructure > &  data) [virtual]
virtual std::string activemq::commands::DataResponse::toString ( ) const [virtual]

Returns a string containing the information for this DataStructure such as its type and value of its elements.

Returns:
formatted string useful for debugging.

Reimplemented from activemq::commands::Response.


Field Documentation

const unsigned char activemq::commands::DataResponse::ID_DATARESPONSE = 32 [static]

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