OpenASIP  2.0
Static Public Member Functions | List of all members
SetNextInstructionPrinting Class Reference
Collaboration diagram for SetNextInstructionPrinting:
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 printing of the next executed instruction when simulation stops.

Definition at line 244 of file SettingCommand.cc.

Member Function Documentation

◆ defaultValue()

static const DataObject& SetNextInstructionPrinting::defaultValue ( )
inlinestatic

Returns the default value of this setting.

Returns
The default value.

Definition at line 265 of file SettingCommand.cc.

265  {
266  static const DataObject defaultValue_("1");
267  return defaultValue_;
268  }

◆ execute()

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

Sets the next instruction printing.

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

Definition at line 254 of file SettingCommand.cc.

255  {
256  simFront.setNextInstructionPrinting(newValue);
257  return true;
258  }

References SimulatorFrontend::setNextInstructionPrinting().

Here is the call graph for this function:

◆ warnOnExistingProgramAndMachine()

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

275  {
276  return false;
277  }

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