OpenASIP
2.0
|
#include <MachCommand.hh>
Public Member Functions | |
MachCommand () | |
virtual | ~MachCommand () |
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 "mach" command of the Simulator Control Language.
Definition at line 46 of file MachCommand.hh.
MachCommand::MachCommand | ( | ) |
Constructor.
Sets the name of the command to the base class.
Definition at line 47 of file MachCommand.cc.
|
virtual |
|
virtual |
Executes the "mach" command.
Loads a new machine file using the SimulatorFrontend.
arguments | Filename is given as argument to the command. |
NumberFormatException | Is never thrown by this command. |
Implements CustomCommand.
Definition at line 69 of file MachCommand.cc.
References assert, ScriptInterpreter::context(), Exception::errorMessageStack(), FileSystem::expandTilde(), CustomCommand::interpreter(), SimulatorFrontend::loadMachine(), ScriptInterpreter::setResult(), DataObject::setString(), SimulatorInterpreterContext::simulatorFrontend(), Texts::TextGenerator::text(), SimulatorToolbox::textGenerator(), Texts::TXT_NO_FILENAME_DEFINED, Texts::TXT_ONLY_ONE_FILENAME_EXPECTED, and Texts::TXT_UNABLE_TO_LOAD_MACHINE.
|
virtual |
Returns the help text for this command.
Help text is searched from SimulatorTextGenerator.
Implements CustomCommand.
Definition at line 122 of file MachCommand.cc.
References Texts::TextGenerator::text(), SimulatorToolbox::textGenerator(), and Texts::TXT_INTERP_HELP_MACH.