OpenASIP 2.2
Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
SetHistorySave Class Reference
Collaboration diagram for SetHistorySave:
Collaboration graph

Static Public Member Functions

static bool execute (SimulatorInterpreter &interpreter, SimulatorFrontend &, bool newValue)
 
static const DataObject & defaultValue ()
 
static bool warnOnExistingProgramAndMachine ()
 

Detailed Description

Setting action that sets the command history file name.

Definition at line 490 of file SettingCommand.cc.

Member Function Documentation

◆ defaultValue()

static const DataObject & SetHistorySave::defaultValue ( )
inlinestatic

Returns the default value of this setting.

Returns
The default value.

Definition at line 513 of file SettingCommand.cc.

513 {
514 static const DataObject defaultValue_("0");
515 return defaultValue_;
516 }

◆ execute()

static bool SetHistorySave::execute ( SimulatorInterpreter &  interpreter,
SimulatorFrontend &  ,
bool  newValue 
)
inlinestatic

Makes command history to be saved to a file.

Parameters
interpreterUsed to set the setting.
newValueValue to set.
Returns
True if setting was successful.

Definition at line 500 of file SettingCommand.cc.

503 {
504 interpreter.lineReader()->setSaveInputHistoryToFile(newValue);
505 return true;
506 }
virtual void setSaveInputHistoryToFile(bool flag)
virtual LineReader * lineReader() const

References ScriptInterpreter::lineReader(), and LineReader::setSaveInputHistoryToFile().

Here is the call graph for this function:

◆ warnOnExistingProgramAndMachine()

static bool SetHistorySave::warnOnExistingProgramAndMachine ( )
inlinestatic

Should the action warn if program & machine exist and value was changed

Returns
boolean value on whether or not to warn

Definition at line 523 of file SettingCommand.cc.

523 {
524 return false;
525 }

The documentation for this class was generated from the following file: