|
OpenASIP 2.2
|
#include <CmdHelp.hh>


Public Member Functions | |
| CmdHelp () | |
| CmdHelp (const CmdHelp &cmd) | |
| virtual | ~CmdHelp () |
| virtual bool | execute (const std::vector< DataObject > &arguments) |
| virtual std::string | helpText () const |
Public Member Functions inherited from CustomCommand | |
| CustomCommand (std::string name) | |
| CustomCommand (const CustomCommand &cmd) | |
| virtual | ~CustomCommand () |
| std::string | name () const |
| void | setContext (InterpreterContext *context) |
| InterpreterContext * | context () const |
| void | setInterpreter (ScriptInterpreter *si) |
| ScriptInterpreter * | interpreter () const |
| bool | checkArgumentCount (int argumentCount, int minimum, int maximum) |
| bool | checkIntegerArgument (const DataObject &argument) |
| bool | checkPositiveIntegerArgument (const DataObject &argument) |
| bool | checkUnsignedIntegerArgument (const DataObject &argument) |
| bool | checkDoubleArgument (const DataObject &argument) |
Private Member Functions | |
| CmdHelp & | operator= (const CmdHelp &) |
| Assignment not allowed. | |
Help command.
Prints the help text of the CustomCommand that is given as parameter to execute.
Definition at line 50 of file CmdHelp.hh.
| CmdHelp::CmdHelp | ( | ) |
Constructor.
Definition at line 47 of file CmdHelp.cc.
| CmdHelp::CmdHelp | ( | const CmdHelp & | cmd | ) |
|
virtual |
|
virtual |
Executes the help command.
| arguments | Arguments for the command. |
| NumberFormatException | If conversion of DataObject fails. |
Implements CustomCommand.
Definition at line 64 of file CmdHelp.cc.
References assert, ScriptInterpreter::customCommand(), ScriptInterpreter::customCommandsSortedByName(), CustomCommand::helpText(), CustomCommand::interpreter(), ScriptInterpreter::setResult(), and DataObject::setString().

|
virtual |
Returns help text.
Implements CustomCommand.
Definition at line 105 of file CmdHelp.cc.