Command.cc Source File
Back to the index.
Go to the documentation of this file.
34 , m_argumentFormat(argumentFormat)
56 DummyCommand(
int& valueRef)
57 :
Command(
"dummycommand",
"[args]")
74 return "A dummy command used for unit testing.";
79 return "This is just a dummy command used for unit testing.";
86 static void Test_Command_DummyCommand()
89 vector<string> dummyArgs;
99 cmd->Execute(gxemulDummy, dummyArgs));
107 UNITTEST(Test_Command_DummyCommand);
#define UNITTESTS(class)
Helper for unit test case execution.
A Command is a named function, executed by the CommandInterpreter.
Command(const string &name, const string &argumentFormat)
Constructs a Command.
#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 string GetLongDescription() const =0
Returns a long description/help message for the command.
virtual bool Execute(GXemul &gxemul, const vector< string > &arguments)=0
Executes the command on a given GXemul instance.
virtual string GetShortDescription() const =0
Returns a short (one-line) description of the command.
Generated on Tue Mar 24 2020 14:04:48 for GXemul by
1.8.17