#include <command.hpp>
Public Member Functions | |
AliasCommand (std::string name, std::string alias) | |
virtual RealCommand * | getRealCommand (const std::vector< Command * > &cmds) const |
virtual | ~AliasCommand () |
Public Member Functions inherited from OCL::TCP::Command | |
Command (std::string name) | |
const std::string & | getName () const |
virtual bool | is (std::string &cmd) const |
bool | operator!= (const std::string &cmp) const |
bool | operator< (const Command &cmp) const |
bool | operator== (const std::string &cmp) const |
virtual | ~Command () |
Private Attributes | |
std::string | _alias |
Additional Inherited Members | |
Static Public Member Functions inherited from OCL::TCP::Command | |
static Command * | find (const std::vector< Command * > &cmds, const std::string &cmp) |
Protected Attributes inherited from OCL::TCP::Command | |
std::string | _name |
Another name for a command
Definition at line 130 of file command.hpp.
OCL::TCP::AliasCommand::AliasCommand | ( | std::string | name, |
std::string | alias | ||
) |
Definition at line 440 of file command.cpp.
|
inlinevirtual |
Definition at line 137 of file command.hpp.
|
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.
Implements OCL::TCP::Command.
Definition at line 445 of file command.cpp.
|
private |
Definition at line 133 of file command.hpp.