A Command which sets the RunState to BackwardsSingleStepping. More...
#include <BackwardStepCommand.h>
Public Member Functions | |
BackwardStepCommand () | |
Constructs a BackwardStepCommand. More... | |
virtual | ~BackwardStepCommand () |
virtual bool | Execute (GXemul &gxemul, const vector< string > &arguments) |
Executes the command on a given GXemul instance. More... | |
virtual bool | MayBeReexecutedWithoutArgs () const |
Returns whether the command can be quickly re-executed using an empty command line. More... | |
virtual string | GetShortDescription () const |
Returns a short (one-line) description of the command. More... | |
virtual string | GetLongDescription () const |
Returns a long description/help message for the command. More... | |
![]() | |
Command (const string &name, const string &argumentFormat) | |
Constructs a Command. More... | |
virtual | ~Command ()=0 |
const string & | GetCommandName () const |
Gets the name of the command. More... | |
const string & | GetArgumentFormat () const |
Gets the argument format for the command. More... | |
![]() | |
ReferenceCountable () | |
Default constructor, which initializes the reference count to zero. More... | |
~ReferenceCountable () | |
Static Public Member Functions | |
static void | RunUnitTests (int &nSucceeded, int &nFailures) |
![]() | |
static void | RunUnitTests (int &nSucceeded, int &nFailures) |
![]() | |
static void | RunUnitTests (int &nSucceeded, int &nFailures) |
Runs unit test cases. More... | |
A Command which sets the RunState to BackwardsSingleStepping.
Definition at line 40 of file BackwardStepCommand.h.
BackwardStepCommand::BackwardStepCommand | ( | ) |
Constructs a BackwardStepCommand.
Definition at line 32 of file BackwardStepCommand.cc.
Referenced by GetLongDescription().
|
virtual |
Definition at line 38 of file BackwardStepCommand.cc.
|
virtual |
Executes the command on a given GXemul instance.
gxemul | A reference to the GXemul instance. |
arguments | A vector of zero or more string arguments. |
Implements Command.
Definition at line 43 of file BackwardStepCommand.cc.
References Component::DetectChanges(), GXemul::GetRootComponent(), GXemul::GetUI(), Component::GetVariable(), Component::LightClone(), Component::SetVariableValue(), UI::ShowDebugMessage(), and StateVariable::ToInteger().
|
virtual |
Returns a long description/help message for the command.
Implements Command.
Definition at line 90 of file BackwardStepCommand.cc.
References UnitTest::Assert(), BackwardStepCommand(), Command::Execute(), GXemul::Execute(), GXemul::GetCommandInterpreter(), GXemul::GetRootComponent(), GXemul::GetStep(), Component::LookupPath(), GXemul::ParseFilenames(), GXemul::Reset(), CommandInterpreter::RunCommand(), GXemul::SetSnapshottingEnabled(), UNITTEST, and UNITTESTS.
Referenced by MayBeReexecutedWithoutArgs().
|
virtual |
Returns a short (one-line) description of the command.
Implements Command.
Definition at line 84 of file BackwardStepCommand.cc.
Referenced by MayBeReexecutedWithoutArgs().
|
inlinevirtual |
Returns whether the command can be quickly re-executed using an empty command line.
Typical examples are: step, cpu disassembly, and memory dump, where re-executing the command without arguments is very natural.
Reimplemented from Command.
Definition at line 53 of file BackwardStepCommand.h.
References GetLongDescription(), GetShortDescription(), and RunUnitTests().
|
static |
Referenced by MayBeReexecutedWithoutArgs().