activemq-cpp-3.4.0
|
#include <src/main/activemq/commands/ControlCommand.h>
Public Member Functions | |
ControlCommand () | |
virtual | ~ControlCommand () |
virtual unsigned char | getDataStructureType () const |
Get the DataStructure Type as defined in CommandTypes.h. | |
virtual ControlCommand * | cloneDataStructure () 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 & | getCommand () const |
virtual std::string & | getCommand () |
virtual void | setCommand (const std::string &command) |
virtual Pointer< Command > | visit (activemq::state::CommandVisitor *visitor) |
Allows a Visitor to visit this command and return a response to the command based on the command type being visited. | |
Static Public Attributes | |
static const unsigned char | ID_CONTROLCOMMAND = 14 |
Protected Attributes | |
std::string | command |
activemq::commands::ControlCommand::ControlCommand | ( | ) |
virtual activemq::commands::ControlCommand::~ControlCommand | ( | ) | [virtual] |
virtual ControlCommand* activemq::commands::ControlCommand::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.
Implements activemq::commands::DataStructure.
virtual void activemq::commands::ControlCommand::copyDataStructure | ( | const DataStructure * | src | ) | [virtual] |
Copy the contents of the passed object into this objects members, overwriting any existing data.
Reimplemented from activemq::commands::BaseCommand.
virtual bool activemq::commands::ControlCommand::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.
Reimplemented from activemq::commands::BaseCommand.
virtual std::string& activemq::commands::ControlCommand::getCommand | ( | ) | [virtual] |
virtual const std::string& activemq::commands::ControlCommand::getCommand | ( | ) | const [virtual] |
virtual unsigned char activemq::commands::ControlCommand::getDataStructureType | ( | ) | const [virtual] |
Get the DataStructure Type as defined in CommandTypes.h.
Implements activemq::commands::DataStructure.
virtual void activemq::commands::ControlCommand::setCommand | ( | const std::string & | command | ) | [virtual] |
virtual std::string activemq::commands::ControlCommand::toString | ( | ) | const [virtual] |
Returns a string containing the information for this DataStructure such as its type and value of its elements.
Reimplemented from activemq::commands::BaseCommand.
virtual Pointer<Command> activemq::commands::ControlCommand::visit | ( | activemq::state::CommandVisitor * | visitor | ) | [virtual] |
Allows a Visitor to visit this command and return a response to the command based on the command type being visited.
The command will call the proper processXXX method in the visitor.
Implements activemq::commands::Command.
std::string activemq::commands::ControlCommand::command [protected] |
const unsigned char activemq::commands::ControlCommand::ID_CONTROLCOMMAND = 14 [static] |