OpenASIP  2.0
Static Public Member Functions | List of all members
SetExecutionTrace Class Reference
Collaboration diagram for SetExecutionTrace:
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 execution trace of simulation.

Definition at line 48 of file SettingCommand.cc.

Member Function Documentation

◆ defaultValue()

static const DataObject& SetExecutionTrace::defaultValue ( )
inlinestatic

Returns the default value of this setting.

Returns
The default value.

Definition at line 69 of file SettingCommand.cc.

69  {
70  static const DataObject defaultValue_("0");
71  return defaultValue_;
72  }

◆ execute()

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

Sets the execution trace of the simulation.

Parameters
simFrontSimulatorFrontend to set the execution trace for.
newValueValue to set.
Returns
True if setting was successful.

Definition at line 58 of file SettingCommand.cc.

59  {
60  simFront.setExecutionTracing(newValue);
61  return true;
62  }

References SimulatorFrontend::setExecutionTracing().

Here is the call graph for this function:

◆ warnOnExistingProgramAndMachine()

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

79  {
80  return true;
81  }

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