OpenASIP
2.0
|
#include <SettingCommand.hh>
Classes | |
class | SimulatorSetting |
Protected Types | |
typedef std::map< std::string, SimulatorSetting * > | SettingMap |
container for simulator settings indexed by name More... | |
Protected Attributes | |
SettingMap | settings_ |
storage for simulator settings More... | |
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 "setting" command of the Simulator Control Language.
Definition at line 51 of file SettingCommand.hh.
|
protected |
container for simulator settings indexed by name
Definition at line 78 of file SettingCommand.hh.
SettingCommand::SettingCommand | ( | ) |
Definition at line 666 of file SettingCommand.cc.
References settings_, Texts::TextGenerator::text(), SimulatorToolbox::textGenerator(), Texts::TXT_INTERP_SETTING_BUSTRACE, Texts::TXT_INTERP_SETTING_EXECTRACE, Texts::TXT_INTERP_SETTING_FU_CONFLICT_DETECTION, Texts::TXT_INTERP_SETTING_HISTORY_FILENAME, Texts::TXT_INTERP_SETTING_HISTORY_SAVE, Texts::TXT_INTERP_SETTING_HISTORY_SIZE, Texts::TXT_INTERP_SETTING_MEMORY_ACCESS_TRACKING, Texts::TXT_INTERP_SETTING_NEXT_INSTRUCTION_PRINTING, Texts::TXT_INTERP_SETTING_PROCEDURE_TRANSFER_TRACKING, Texts::TXT_INTERP_SETTING_PROFILE_SAVING, Texts::TXT_INTERP_SETTING_RFTRACKING, Texts::TXT_INTERP_SETTING_UTILIZATION_SAVING, Texts::TXT_SIMULATION_TIME_STATISTICS, Texts::TXT_SIMULATION_TIMEOUT, and Texts::TXT_STATIC_COMPILATION.
|
virtual |
Destructor.
Does nothing.
Definition at line 771 of file SettingCommand.cc.
References MapTools::deleteAllValues(), and settings_.
|
virtual |
Executes the "setting" command.
Command that allows changing and listing simulator's settings. If no arguments are given, all simulator settings are listed in predefined oreder. If one argument is given, it's expected to be a simulator setting, of which current value is printed. If two arguments are given, the first argument tells the name of the setting to modify, and second argument the new value.
arguments | Read the comment. |
NumberFormatException | Is never thrown by this command. |
Implements CustomCommand.
Definition at line 791 of file SettingCommand.cc.
References CustomCommand::checkArgumentCount(), Exception::errorMessage(), CustomCommand::interpreter(), SimControlLanguageCommand::outputStream(), ScriptInterpreter::setError(), ScriptInterpreter::setResult(), DataObject::setString(), settings_, SettingCommand::SimulatorSetting::setValue(), SimControlLanguageCommand::simulatorFrontend(), StringTools::stringToLower(), SimulatorToolbox::textGenerator(), Texts::TXT_NO_SUCH_SETTING, and SettingCommand::SimulatorSetting::valueAsString().
|
virtual |
Returns the help text for this command.
Help text is searched from SimulatorTextGenerator.
Implements CustomCommand.
Definition at line 855 of file SettingCommand.cc.
References Texts::TextGenerator::text(), SimulatorToolbox::textGenerator(), and Texts::TXT_INTERP_HELP_SETTING.
|
protected |
storage for simulator settings
Definition at line 80 of file SettingCommand.hh.
Referenced by CompiledSimSettingCommand::CompiledSimSettingCommand(), execute(), SettingCommand(), and ~SettingCommand().