ResetCommand.cc Source File
Back to the index.
Go to the documentation of this file.
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);
#define UNITTESTS(class)
Helper for unit test case execution.
A Command is a named function, executed by the CommandInterpreter.
A Command which resets the current emulation.
#define UNITTEST(functionname)
Helper for unit test case execution.
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.
void SetRunState(RunState newState)
Sets the RunState.
bool Reset()
Resets the emulation.
virtual string GetShortDescription() const
Returns a short (one-line) description of the command.
RunState GetRunState() const
Gets the current RunState.
virtual string GetLongDescription() const
Returns a long description/help message for the command.
ResetCommand()
Constructs a ResetCommand.
Generated on Tue Aug 25 2020 19:25:06 for GXemul by
1.8.18