VersionCommand.cc Source File
Back to the index.
Go to the documentation of this file.
52 return "Prints version information.";
58 return "Prints version information.";
67 static void Test_VersionCommand_DontAcceptArgs()
70 vector<string> dummyArguments;
73 cmd->GetArgumentFormat() ==
"");
78 UNITTEST(Test_VersionCommand_DontAcceptArgs);
#define UNITTESTS(class)
Helper for unit test case execution.
A Command is a named function, executed by the CommandInterpreter.
virtual ~VersionCommand()
#define UNITTEST(functionname)
Helper for unit test case execution.
A Command which prints the version of the application.
static void Assert(const string &strFailMessage, bool condition)
Asserts that a boolean condition is correct.
virtual void ShowDebugMessage(const string &msg)=0
Shows a debug message.
virtual string GetShortDescription() const
Returns a short (one-line) description of the command.
UI * GetUI()
Gets a pointer to the GXemul instance' active UI.
VersionCommand()
Constructs a VersionCommand.
virtual bool Execute(GXemul &gxemul, const vector< string > &arguments)
Executes the command on a given GXemul instance.
virtual string GetLongDescription() const
Returns a long description/help message for the command.
static string Version()
Returns the GXemul version string.
Generated on Tue Aug 25 2020 19:25:06 for GXemul by
1.8.18