activemq-cpp-3.4.0

activemq::commands::ConnectionId Class Reference

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

Inheritance diagram for activemq::commands::ConnectionId:

Public Types

typedef
decaf::lang::PointerComparator
< ConnectionId
COMPARATOR

Public Member Functions

 ConnectionId ()
 ConnectionId (const ConnectionId &other)
 ConnectionId (const SessionId *sessionId)
 ConnectionId (const ProducerId *producerId)
 ConnectionId (const ConsumerId *consumerId)
virtual ~ConnectionId ()
virtual unsigned char getDataStructureType () const
 Get the DataStructure Type as defined in CommandTypes.h.
virtual ConnectionIdcloneDataStructure () 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 std::string & getValue () const
virtual std::string & getValue ()
virtual void setValue (const std::string &value)
virtual int compareTo (const ConnectionId &value) const
virtual bool equals (const ConnectionId &value) const
virtual bool operator== (const ConnectionId &value) const
virtual bool operator< (const ConnectionId &value) const
ConnectionIdoperator= (const ConnectionId &other)

Static Public Attributes

static const unsigned char ID_CONNECTIONID = 120

Protected Attributes

std::string value

Member Typedef Documentation


Constructor & Destructor Documentation

activemq::commands::ConnectionId::ConnectionId ( )
activemq::commands::ConnectionId::ConnectionId ( const ConnectionId other)
activemq::commands::ConnectionId::ConnectionId ( const SessionId sessionId)
activemq::commands::ConnectionId::ConnectionId ( const ProducerId producerId)
activemq::commands::ConnectionId::ConnectionId ( const ConsumerId consumerId)
virtual activemq::commands::ConnectionId::~ConnectionId ( ) [virtual]

Member Function Documentation

virtual ConnectionId* activemq::commands::ConnectionId::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.

Implements activemq::commands::DataStructure.

virtual int activemq::commands::ConnectionId::compareTo ( const ConnectionId value) const [virtual]
virtual void activemq::commands::ConnectionId::copyDataStructure ( const DataStructure src) [virtual]

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

Returns:
src - Source Object

Implements activemq::commands::DataStructure.

virtual bool activemq::commands::ConnectionId::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.

Implements activemq::commands::DataStructure.

virtual bool activemq::commands::ConnectionId::equals ( const ConnectionId value) const [virtual]
virtual unsigned char activemq::commands::ConnectionId::getDataStructureType ( ) const [virtual]

Get the DataStructure Type as defined in CommandTypes.h.

Returns:
The type of the data structure

Implements activemq::commands::DataStructure.

virtual const std::string& activemq::commands::ConnectionId::getValue ( ) const [virtual]
virtual std::string& activemq::commands::ConnectionId::getValue ( ) [virtual]
virtual bool activemq::commands::ConnectionId::operator< ( const ConnectionId value) const [virtual]
ConnectionId& activemq::commands::ConnectionId::operator= ( const ConnectionId other)
virtual bool activemq::commands::ConnectionId::operator== ( const ConnectionId value) const [virtual]
virtual void activemq::commands::ConnectionId::setValue ( const std::string &  value) [virtual]
virtual std::string activemq::commands::ConnectionId::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::BaseDataStructure.


Field Documentation

std::string activemq::commands::ConnectionId::value [protected]

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