#include <command.hpp>
Public Member Functions | |
Command (std::string name) | |
Command (std::string name) | |
const std::string & | getName () const |
const std::string & | getName () const |
virtual RealCommand * | getRealCommand (const std::vector< Command * > &cmds) const =0 |
virtual RealCommand * | getRealCommand (const std::vector< Command * > &cmds) const =0 |
virtual bool | is (std::string &cmd) const |
virtual bool | is (std::string &cmd) const |
bool | operator!= (const std::string &cmp) const |
bool | operator!= (const std::string &cmp) const |
bool | operator< (const Command &cmp) const |
bool | operator< (const Command &cmp) const |
bool | operator== (const std::string &cmp) const |
bool | operator== (const std::string &cmp) const |
virtual | ~Command () |
virtual | ~Command () |
Static Public Member Functions | |
static Command * | find (const std::vector< Command * > &cmds, const std::string &cmp) |
static Command * | find (const std::vector< Command * > &cmds, const std::string &cmp) |
Protected Attributes | |
std::string | _name |
Command pattern
Definition at line 91 of file install/include/orocos/ocl/command.hpp.
OCL::TCP::Command::Command | ( | std::string | name | ) |
Definition at line 394 of file command.cpp.
OCL::TCP::Command::~Command | ( | ) | [virtual] |
Definition at line 399 of file command.cpp.
OCL::TCP::Command::Command | ( | std::string | name | ) |
virtual OCL::TCP::Command::~Command | ( | ) | [virtual] |
static 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.
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 | ( | ) | const |
Get the name of this command.
const std::string & OCL::TCP::Command::getName | ( | ) | 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::AliasCommand, OCL::TCP::RealCommand, OCL::TCP::AliasCommand, and OCL::TCP::RealCommand.
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::AliasCommand, OCL::TCP::RealCommand, OCL::TCP::AliasCommand, and OCL::TCP::RealCommand.
virtual bool OCL::TCP::Command::is | ( | std::string & | cmd | ) | const [virtual] |
bool OCL::TCP::Command::is | ( | std::string & | cmd | ) | const [virtual] |
Definition at line 420 of file command.cpp.
bool OCL::TCP::Command::operator!= | ( | const std::string & | cmp | ) | const |
bool OCL::TCP::Command::operator!= | ( | const std::string & | cmp | ) | const |
Definition at line 430 of file command.cpp.
bool OCL::TCP::Command::operator< | ( | const Command & | cmp | ) | const |
bool OCL::TCP::Command::operator< | ( | const Command & | cmp | ) | const |
Definition at line 435 of file command.cpp.
bool OCL::TCP::Command::operator== | ( | const std::string & | cmp | ) | const |
Compare on name
bool OCL::TCP::Command::operator== | ( | const std::string & | cmp | ) | const |
Compare on name
Definition at line 425 of file command.cpp.
std::string OCL::TCP::Command::_name [protected] |
Definition at line 94 of file install/include/orocos/ocl/command.hpp.