Motor command. More...
#include <console.h>
Public Types | |
| typedef std::vector< std::string > | ArgList |
Public Member Functions | |
| DxlROSCommand (DxlROSConsole *console, std::string name, size_t nargs, std::string help) | |
| bool | execute (ArgList args) |
| Executes the command with certain arguments. | |
| std::string | getHelp () |
| Returns help information. | |
| bool | match (std::string cmd, ArgList args) |
| Check whether a command line matches this command. | |
| bool | matchHelp (std::string cmd, ArgList args) |
| Check whether a command line loosely matches this command. | |
Protected Attributes | |
| DxlROSConsole * | console_ |
| Console on which to execute command. | |
| std::string | help_ |
| Help information. | |
| std::string | name_ |
| Command name. | |
| size_t | nargs_ |
| Number of arguments. | |
| typedef std::vector<std::string> DxlROSCommand::ArgList |
| DxlROSCommand::DxlROSCommand | ( | DxlROSConsole * | console, |
| std::string | name, | ||
| size_t | nargs, | ||
| std::string | help | ||
| ) | [inline] |
| bool DxlROSCommand::execute | ( | ArgList | args | ) |
Executes the command with certain arguments.
Definition at line 29 of file console.cpp.
| std::string DxlROSCommand::getHelp | ( | ) | [inline] |
| bool DxlROSCommand::match | ( | std::string | cmd, |
| ArgList | args | ||
| ) | [inline] |
| bool DxlROSCommand::matchHelp | ( | std::string | cmd, |
| ArgList | args | ||
| ) | [inline] |
DxlROSConsole* DxlROSCommand::console_ [protected] |
std::string DxlROSCommand::help_ [protected] |
std::string DxlROSCommand::name_ [protected] |
size_t DxlROSCommand::nargs_ [protected] |