#include <command.h>
Inheritance diagram for TPProto::Command:

Public Member Functions | |
| Command () | |
| Default constructor. | |
| virtual | ~Command () |
| Destructor. | |
| void | packBuffer (Buffer *buf) |
| Pack this Command Frame into a Buffer. | |
| bool | unpackBuffer (Buffer *buf) |
| Unpack from a Buffer, fails always. Command frames are only sent to the server, so unpacking is not needed. | |
| std::string | getName () |
| Gets the name of this command type. | |
| std::string | getDescription () |
| Gets the text description of this command type. | |
| unsigned int | getCommandType () |
| Gets the command type number of this command. | |
| unsigned int | getNumParameters () |
| Gets the number of CommandParameters this command has. | |
| CommandParameter * | getParameter (unsigned int which) |
| Gets a CommandParameter. | |
| void | setCommandType (boost::shared_ptr< CommandDescription > cd) |
| Sets the command type using a CommandDescription. | |
| void | fillParameterList (std::list< CommandParameter * > plist) |
| Fills the parameter list with valued parameters. | |
| TPProto::Command::~Command | ( | ) | [virtual] |
Destructor.
Deletes the CommandParameters it contains.
| void TPProto::Command::packBuffer | ( | Buffer * | buf | ) | [virtual] |
Pack this Command Frame into a Buffer.
| buf | The Buffer to pack into. |
Implements TPProto::Frame.
| bool TPProto::Command::unpackBuffer | ( | Buffer * | buf | ) | [virtual] |
Unpack from a Buffer, fails always. Command frames are only sent to the server, so unpacking is not needed.
| buf | The Buffer to unpack out of, ignored. |
Implements TPProto::Frame.
| std::string TPProto::Command::getName | ( | ) |
Gets the name of this command type.
| std::string TPProto::Command::getDescription | ( | ) |
Gets the text description of this command type.
| unsigned int TPProto::Command::getCommandType | ( | ) |
Gets the command type number of this command.
| unsigned int TPProto::Command::getNumParameters | ( | ) |
Gets the number of CommandParameters this command has.
| CommandParameter * TPProto::Command::getParameter | ( | unsigned int | which | ) |
Gets a CommandParameter.
| which | The number of the parameter to get. |
| void TPProto::Command::setCommandType | ( | boost::shared_ptr< CommandDescription > | cd | ) |
Sets the command type using a CommandDescription.
| cd | The CommandDescription describing the command type required. |
| void TPProto::Command::fillParameterList | ( | std::list< CommandParameter * > | plist | ) |
Fills the parameter list with valued parameters.
| plist | The valued parameter list. |
1.5.1