OpenASIP  2.0
Static Public Member Functions | List of all members
SetProfileSaving Class Reference
Collaboration diagram for SetProfileSaving:
Collaboration graph

Static Public Member Functions

static bool execute (SimulatorInterpreter &, SimulatorFrontend &simFront, bool newValue)
 
static const DataObjectdefaultValue ()
 
static bool warnOnExistingProgramAndMachine ()
 

Detailed Description

Setting action that sets the profile data saving.

Definition at line 165 of file SettingCommand.cc.

Member Function Documentation

◆ defaultValue()

static const DataObject& SetProfileSaving::defaultValue ( )
inlinestatic

Returns the default value of this setting.

Returns
The default value.

Definition at line 186 of file SettingCommand.cc.

186  {
187  static const DataObject defaultValue_("0");
188  return defaultValue_;
189  }

◆ execute()

static bool SetProfileSaving::execute ( SimulatorInterpreter ,
SimulatorFrontend simFront,
bool  newValue 
)
inlinestatic

Sets the profile data saving.

Parameters
simFrontSimulatorFrontend to set the profile data saving for.
newValueValue to set.
Returns
True if setting was successful.

Definition at line 175 of file SettingCommand.cc.

176  {
177  simFront.setProfileDataSaving(newValue);
178  return true;
179  }

References SimulatorFrontend::setProfileDataSaving().

Here is the call graph for this function:

◆ warnOnExistingProgramAndMachine()

static bool SetProfileSaving::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 196 of file SettingCommand.cc.

196  {
197  return false;
198  }

The documentation for this class was generated from the following file:
DataObject
Definition: DataObject.hh:50
SimulatorFrontend::setProfileDataSaving
void setProfileDataSaving(bool value)
Definition: SimulatorFrontend.cc:1940