OpenASIP
2.0
|
#include <ProgCommand.hh>
Additional Inherited Members | |
Protected Member Functions inherited from SimControlLanguageCommand | |
bool | setMemoryAddress (const std::string &addressString, std::string &addressSpaceName, std::size_t &memoryAddress) |
bool | setMemoryPointer (MemorySystem::MemoryPtr &memory, const std::string &addressSpaceName) |
Implementation of the "prog" command of the Simulator Control Language.
Definition at line 46 of file ProgCommand.hh.
ProgCommand::ProgCommand | ( | ) |
Constructor.
Sets the name of the command to the base class.
Definition at line 48 of file ProgCommand.cc.
|
virtual |
|
virtual |
Executes the "prog" command.
Loads a new program 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 70 of file ProgCommand.cc.
References assert, SimulatorFrontend::automaticFinishImpossible(), ScriptInterpreter::context(), Exception::errorMessage(), FileSystem::expandTilde(), CustomCommand::interpreter(), SimulatorFrontend::loadProgram(), SimControlLanguageCommand::outputStream(), ScriptInterpreter::setResult(), DataObject::setString(), SimulatorInterpreterContext::simulatorFrontend(), SimControlLanguageCommand::simulatorFrontend(), Texts::TextGenerator::text(), SimulatorToolbox::textGenerator(), Texts::TXT_AUTOMATIC_FINISH_IMPOSSIBLE, 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 123 of file ProgCommand.cc.
References Texts::TextGenerator::text(), SimulatorToolbox::textGenerator(), and Texts::TXT_INTERP_HELP_PROG.