A Command which resets the current emulation. More...
#include <ResetCommand.h>
Public Member Functions | |
ResetCommand () | |
Constructs a ResetCommand. More... | |
virtual | ~ResetCommand () |
virtual bool | Execute (GXemul &gxemul, const vector< string > &arguments) |
Executes the command on a given GXemul instance. 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... | |
virtual bool | MayBeReexecutedWithoutArgs () const |
Returns whether the command can be quickly re-executed using an empty command line. 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 resets the current emulation.
The emulation is reset by resetting all components' state variables to their initial state, and by changing the current RunState to Paused.
Definition at line 43 of file ResetCommand.h.
ResetCommand::ResetCommand | ( | ) |
Constructs a ResetCommand.
Definition at line 32 of file ResetCommand.cc.
|
virtual |
Definition at line 38 of file ResetCommand.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 ResetCommand.cc.
References GXemul::Paused, GXemul::Reset(), and GXemul::SetRunState().
|
virtual |
Returns a long description/help message for the command.
Implements Command.
Definition at line 58 of file ResetCommand.cc.
|
virtual |
Returns a short (one-line) description of the command.
Implements Command.
Definition at line 52 of file ResetCommand.cc.
|
static |