OpenASIP
2.0
|
#include <TestOsal.hh>
Public Member Functions | |
CmdReset () | |
CmdReset (const CmdReset &cmd) | |
virtual | ~CmdReset () |
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) |
Custom command that executes the reset command.
Reset command resets the state of the operation.
Definition at line 77 of file TestOsal.hh.
CmdReset::CmdReset | ( | ) |
|
explicit |
|
virtual |
|
virtual |
Executes the command.
arguments | Arguments for the command. |
Implements CustomCommand.
Definition at line 210 of file TestOsal.cc.
References assert, Operation::behavior(), CustomCommand::context(), SimpleScriptInterpreter::context(), OperationBehavior::deleteState(), NullOperation::instance(), CustomCommand::interpreter(), OsalInterpreter::operation(), ScriptInterpreter::setResult(), and DataObject::setString().
|
virtual |
Returns the help text of the command.
Implements CustomCommand.
Definition at line 248 of file TestOsal.cc.