OpenASIP
2.0
|
#include <TestOsal.hh>
Public Member Functions | |
CmdQuit () | |
CmdQuit (const CmdQuit &cmd) | |
virtual | ~CmdQuit () |
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) |
Command that quits the execution of the program.
Definition at line 94 of file TestOsal.hh.
CmdQuit::CmdQuit | ( | ) |
|
explicit |
|
virtual |
|
virtual |
Executes the command.
The execution of the quit command will stop the program.
arguments | Arguments for the command. |
NumberFormatException | If DataObject conversion fails. |
Implements CustomCommand.
Definition at line 576 of file TestOsal.cc.
References assert, SimpleScriptInterpreter::context(), CustomCommand::interpreter(), ScriptInterpreter::setResult(), DataObject::setString(), and TesterContext::stop().
|
virtual |
Returns the help text of the command.
Implements CustomCommand.
Definition at line 602 of file TestOsal.cc.