|
OpenASIP 2.2
|
#include <ConfCommand.hh>


Public Member Functions | |
| ConfCommand () | |
| virtual | ~ConfCommand () |
| 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 "conf" command of the Simulator Control Language.
Definition at line 46 of file ConfCommand.hh.
| ConfCommand::ConfCommand | ( | ) |
Constructor.
Sets the name of the command to the base class.
Definition at line 47 of file ConfCommand.cc.
|
virtual |
|
virtual |
Executes the "conf" command.
Loads a new machine file using the ProcessorConfigurationFile and SimulatorFrontend.
| arguments | Processor configuration file name is given as argument to the command. |
| NumberFormatException | Is never thrown by this command. |
Implements CustomCommand.
Definition at line 69 of file ConfCommand.cc.
References assert, ScriptInterpreter::context(), Exception::errorMessageStack(), FileSystem::expandTilde(), CustomCommand::interpreter(), SimulatorFrontend::loadProcessorConfiguration(), ScriptInterpreter::setResult(), DataObject::setString(), SimulatorInterpreterContext::simulatorFrontend(), Texts::TextGenerator::text(), SimulatorToolbox::textGenerator(), Texts::TXT_NO_FILENAME_DEFINED, and Texts::TXT_ONLY_ONE_FILENAME_EXPECTED.

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