QuitCommand.cc Source File
Back to the index.
Go to the documentation of this file.
53 return "Quits the application.";
59 return "Quits the application.";
68 static void Test_QuitCommand_Affect_RunState()
71 vector<string> dummyArguments;
76 "the default GXemul instance should be Paused",
79 cmd->Execute(gxemul, dummyArguments);
87 UNITTEST(Test_QuitCommand_Affect_RunState);
virtual string GetShortDescription() const
Returns a short (one-line) description of the command.
A Command which quits the GXemul application.
#define UNITTESTS(class)
Helper for unit test case execution.
A Command is a named function, executed by the CommandInterpreter.
#define UNITTEST(functionname)
Helper for unit test case execution.
static void Assert(const string &strFailMessage, bool condition)
Asserts that a boolean condition is correct.
void SetRunState(RunState newState)
Sets the RunState.
virtual void Shutdown()=0
Shuts down the UI.
RunState GetRunState() const
Gets the current RunState.
virtual bool Execute(GXemul &gxemul, const vector< string > &arguments)
Executes the command on a given GXemul instance.
UI * GetUI()
Gets a pointer to the GXemul instance' active UI.
virtual string GetLongDescription() const
Returns a long description/help message for the command.
QuitCommand()
Constructs a QuitCommand.
Generated on Tue Mar 24 2020 14:04:48 for GXemul by
1.8.17