|
OpenASIP 2.2
|
#include <QuitCommand.hh>


Public Member Functions | |
| QuitCommand (const std::string &commandString="quit") | |
| virtual | ~QuitCommand () |
| 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) |
Implementation of the "quit" command of the Simulator Control Language.
Definition at line 46 of file QuitCommand.hh.
| QuitCommand::QuitCommand | ( | const std::string & | commandString = "quit" | ) |
Constructor.
Sets the name of the command to the base class.
Definition at line 48 of file QuitCommand.cc.
|
virtual |
|
virtual |
Executes the "quit" command.
This method does the uninitialization of the simulator.
| arguments | No arguments needed. |
| NumberFormatException | Is never thrown by this command. |
Implements CustomCommand.
Definition at line 71 of file QuitCommand.cc.
References CustomCommand::checkArgumentCount(), and CustomCommand::interpreter().

|
virtual |
Returns the help text for this command.
Help text is searched from SimulatorTextGenerator.
Implements CustomCommand.
Definition at line 89 of file QuitCommand.cc.
References Texts::TextGenerator::text(), SimulatorToolbox::textGenerator(), and Texts::TXT_INTERP_HELP_QUIT.
