Go to the documentation of this file.
110 return defaultValue_;
149 return defaultValue_;
188 return defaultValue_;
227 return defaultValue_;
267 return defaultValue_;
305 return defaultValue_;
333 unsigned int newValue) {
345 return defaultValue_;
373 unsigned int newValue) {
385 return defaultValue_;
425 return defaultValue_;
455 const std::string& newValue) {
460 <<
"Could not open file for writing." << std::endl;
474 return defaultValue_;
515 return defaultValue_;
544 unsigned int newValue) {
556 return defaultValue_;
595 return defaultValue_;
634 return defaultValue_;
652 unsigned int newValue) {
659 return defaultValue_;
670 new TemplatedSimulatorSetting<BooleanSetting, SetExecutionTrace>(
675 new TemplatedSimulatorSetting<BooleanSetting, SetBusTrace>(
680 new TemplatedSimulatorSetting<BooleanSetting, SetRFTracking>(
685 new TemplatedSimulatorSetting<StringSetting, SetHistoryFilename>(
690 new TemplatedSimulatorSetting<BooleanSetting, SetHistorySave>(
695 new TemplatedSimulatorSetting<PositiveIntegerSetting, SetHistorySize>(
699 settings_[
"procedure_transfer_tracking"] =
700 new TemplatedSimulatorSetting<
707 new TemplatedSimulatorSetting<
714 new TemplatedSimulatorSetting<
721 new TemplatedSimulatorSetting<
728 new TemplatedSimulatorSetting<
735 new TemplatedSimulatorSetting<
741 settings_[
"simulation_time_statistics"] =
742 new TemplatedSimulatorSetting<
748 new TemplatedSimulatorSetting<
754 new TemplatedSimulatorSetting<
760 new TemplatedSimulatorSetting<
762 "Sets the length of last procedure transfers to save in\n"
763 "memory for call trace printing.");
792 const int argumentCount = arguments.size() -1;
800 if (argumentCount == 0) {
801 SettingMap::iterator i =
settings_.begin();
806 << std::setw(30) << (*i).first
807 << std::setw(20) << (*i).second->valueAsString() <<
" "
808 << (*i).second->description() << std::endl;
814 SettingMap::iterator settingPosition =
817 if (settingPosition ==
settings_.end()) {
827 if (arguments.size() - 1 == 2) {
bool checkArgumentCount(int argumentCount, int minimum, int maximum)
void setProcedureTransferTracing(bool value)
static const DataObject & defaultValue()
void setMemoryAccessTracking(bool value)
virtual std::ostream & outputStream()
static bool warnOnExistingProgramAndMachine()
static bool warnOnExistingProgramAndMachine()
static bool warnOnExistingProgramAndMachine()
@ TXT_INTERP_SETTING_MEMORY_ACCESS_TRACKING
static bool warnOnExistingProgramAndMachine()
static bool execute(SimulatorInterpreter &, SimulatorFrontend &simFront, bool newValue)
@ TXT_INTERP_SETTING_NEXT_INSTRUCTION_PRINTING
@ TXT_INTERP_SETTING_RFTRACKING
static bool execute(SimulatorInterpreter &, SimulatorFrontend &simFront, bool newValue)
static bool execute(SimulatorInterpreter &, SimulatorFrontend &simFront, unsigned int newValue)
static bool execute(SimulatorInterpreter &interpreter, SimulatorFrontend &, const std::string &newValue)
virtual void setInputHistoryLog(const std::string &historyFilename)
static bool execute(SimulatorInterpreter &, SimulatorFrontend &simFront, bool newValue)
void setStaticCompilation(bool value)
@ TXT_INTERP_SETTING_PROCEDURE_TRANSFER_TRACKING
static bool warnOnExistingProgramAndMachine()
static bool execute(SimulatorInterpreter &interpreter, SimulatorFrontend &, bool newValue)
static bool execute(SimulatorInterpreter &, SimulatorFrontend &simFront, bool newValue)
virtual std::string valueAsString()=0
static bool warnOnExistingProgramAndMachine()
static bool warnOnExistingProgramAndMachine()
@ TXT_INTERP_SETTING_HISTORY_SAVE
virtual boost::format text(int textId)
static const DataObject & defaultValue()
static bool execute(SimulatorInterpreter &, SimulatorFrontend &simFront, bool newValue)
static const DataObject & defaultValue()
virtual ~SettingCommand()
static bool warnOnExistingProgramAndMachine()
static const DataObject & defaultValue()
@ TXT_STATIC_COMPILATION
Use static compilation when using compiled simulator.
@ TXT_INTERP_SETTING_BUSTRACE
void setTimeout(unsigned int value)
static bool fileIsCreatable(const std::string fileName)
static const DataObject & defaultValue()
static const DataObject & defaultValue()
static bool execute(SimulatorInterpreter &, SimulatorFrontend &simFront, bool newValue)
void setCallHistoryLength(std::size_t length)
static bool fileIsDirectory(const std::string fileName)
SettingMap settings_
storage for simulator settings
@ TXT_INTERP_SETTING_HISTORY_SIZE
Description of the execution trace setting.
@ TXT_INTERP_SETTING_HISTORY_FILENAME
static bool execute(SimulatorInterpreter &interpreter, SimulatorFrontend &, unsigned int newValue)
static bool fileIsWritable(const std::string fileName)
virtual std::string helpText() const
virtual bool setValue(SimulatorInterpreter &interpreter, SimulatorFrontend &simFront, const DataObject &newValue)=0
static const DataObject & defaultValue()
virtual void setSaveInputHistoryToFile(bool flag)
@ TXT_INTERP_SETTING_UTILIZATION_SAVING
static bool execute(SimulatorInterpreter &, SimulatorFrontend &simFront, bool newValue)
static const DataObject & defaultValue()
@ TXT_SIMULATION_TIME_STATISTICS
Description of the simulation time statistics setting.
void setProfileDataSaving(bool value)
static bool execute(SimulatorInterpreter &, SimulatorFrontend &simFront, bool newValue)
static bool execute(SimulatorInterpreter &, SimulatorFrontend &simFront, bool newValue)
virtual void setInputHistoryLength(std::size_t length)
std::string errorMessage() const
@ TXT_SIMULATION_TIMEOUT
Simulation timeout in seconds.
virtual std::ostream & outputStream()
static bool warnOnExistingProgramAndMachine()
ScriptInterpreter * interpreter() const
virtual void setResult(DataObject *result)
void setRFAccessTracing(bool value)
static bool warnOnExistingProgramAndMachine()
void setUtilizationDataSaving(bool value)
static bool warnOnExistingProgramAndMachine()
@ TXT_INTERP_SETTING_PROFILE_SAVING
virtual bool execute(const std::vector< DataObject > &arguments)
static bool warnOnExistingProgramAndMachine()
void setExecutionTracing(bool value)
static bool execute(SimulatorInterpreter &, SimulatorFrontend &simFront, unsigned int newValue)
void setSimulationTimeStatistics(bool value)
static bool warnOnExistingProgramAndMachine()
static bool execute(SimulatorInterpreter &, SimulatorFrontend &simFront, bool newValue)
static bool warnOnExistingProgramAndMachine()
static const DataObject & defaultValue()
static bool execute(SimulatorInterpreter &, SimulatorFrontend &simFront, unsigned int newValue)
void setNextInstructionPrinting(bool value)
@ TXT_INTERP_HELP_SETTING
Help text for command "setting" of the CLI.
virtual void setError(bool state)
static const DataObject & defaultValue()
void setFUResourceConflictDetection(bool value)
static const DataObject & defaultValue()
virtual void setString(std::string value)
static bool warnOnExistingProgramAndMachine()
@ TXT_INTERP_SETTING_EXECTRACE
SimulatorFrontend & simulatorFrontend()
static bool warnOnExistingProgramAndMachine()
#define SIM_DEFAULT_COMMAND_LOG
The default command log file name.
virtual LineReader * lineReader() const
static const DataObject & defaultValue()
static const DataObject & defaultValue()
static const DataObject & defaultValue()
void setBusTracing(bool value)
static const DataObject & defaultValue()
@ TXT_INTERP_SETTING_FU_CONFLICT_DETECTION
static const DataObject & defaultValue()
#define DEFAULT_INPUT_HISTORY_SIZE