#include <command.hpp>
Command pattern
Definition at line 91 of file command.hpp.
OCL::TCP::Command::Command |
( |
std::string |
name | ) |
|
OCL::TCP::Command::~Command |
( |
| ) |
|
|
virtual |
Command * OCL::TCP::Command::find |
( |
const std::vector< Command * > & |
cmds, |
|
|
const std::string & |
cmp |
|
) |
| |
|
static |
Find the command with the given name in the vector.
Definition at line 403 of file command.cpp.
const std::string & OCL::TCP::Command::getName |
( |
void |
| ) |
const |
Get the name of this command.
Definition at line 415 of file command.cpp.
virtual RealCommand* OCL::TCP::Command::getRealCommand |
( |
const std::vector< Command * > & |
cmds | ) |
const |
|
pure virtual |
Return a reference to the object which is really responsible for executing this command. This enables multiple names for the same command. Return 0 if no such command is founded.
Implemented in OCL::TCP::RealCommand, and OCL::TCP::AliasCommand.
bool OCL::TCP::Command::is |
( |
std::string & |
cmd | ) |
const |
|
virtual |
bool OCL::TCP::Command::operator!= |
( |
const std::string & |
cmp | ) |
const |
bool OCL::TCP::Command::operator< |
( |
const Command & |
cmp | ) |
const |
bool OCL::TCP::Command::operator== |
( |
const std::string & |
cmp | ) |
const |
std::string OCL::TCP::Command::_name |
|
protected |
The documentation for this class was generated from the following files: