54 return "Resets the current emulation.";
60 return "Resets the emulation, by:\n\n" 61 " 1) setting the current run state to Paused,\n" 62 " 2) clearing the state of all components\n" 63 " 3) reloading any binaries loaded on the command" 64 " line (on-reset commands)\n";
73 static void Test_ResetCommand_RunState()
76 vector<string> dummyArguments;
85 cmd->
Execute(gxemul, dummyArguments);
93 UNITTEST(Test_ResetCommand_RunState);
void SetRunState(RunState newState)
Sets the RunState.
RunState GetRunState() const
Gets the current RunState.
bool Reset()
Resets the emulation.
virtual string GetShortDescription() const
Returns a short (one-line) description of the command.
virtual string GetLongDescription() const
Returns a long description/help message for the command.
#define UNITTESTS(class)
Helper for unit test case execution.
A Command which resets the current emulation.
virtual bool Execute(GXemul &gxemul, const vector< string > &arguments)=0
Executes the command on a given GXemul instance.
ResetCommand()
Constructs a ResetCommand.
A Command is a named function, executed by the CommandInterpreter.
static void Assert(const string &strFailMessage, bool condition)
Asserts that a boolean condition is correct.
virtual bool Execute(GXemul &gxemul, const vector< string > &arguments)
Executes the command on a given GXemul instance.
#define UNITTEST(functionname)
Helper for unit test case execution.