Richard Boegli's CnC_Generals_Zero_Hour Fork WIP
This is documentation of Richard Boegil's Zero Hour Fork
 
Loading...
Searching...
No Matches
TestCmdInterface Class Reference

Inherits DebugCmdInterface.

Public Member Functions

virtual bool Execute (class Debug &dbg, const char *cmd, CommandMode cmdmode, unsigned argn, const char *const *argv)
 Execute the given command.
 
virtual void Delete (void)
 Destroys the current command interface.
 
- Public Member Functions inherited from DebugCmdInterface
 DebugCmdInterface (void)
 

Additional Inherited Members

- Public Types inherited from DebugCmdInterface
enum  CommandMode { Normal , Structured , MAX }
 possible command modes More...
 
- Protected Member Functions inherited from DebugCmdInterface
virtual ~DebugCmdInterface ()
 

Detailed Description

Definition at line 47 of file test2.cpp.

Member Function Documentation

◆ Delete()

virtual void TestCmdInterface::Delete ( void )
inlinevirtual

Destroys the current command interface.

Use this function instead of just delete'ing the instance.

Implements DebugCmdInterface.

Definition at line 61 of file test2.cpp.

◆ Execute()

virtual bool TestCmdInterface::Execute ( class Debug & dbg,
const char * cmd,
CommandMode cmdmode,
unsigned argn,
const char *const * argv )
inlinevirtual

Execute the given command.

This function is called whenever a command has been issued for the command group the interface implements.

Parameters
dbgdebug instance
cmdcommand issued
cmdmodecommand mode
argnnumber of additional arguments passed in
argvargument list
Returns
true if command was known, false if not

Implements DebugCmdInterface.

Definition at line 51 of file test2.cpp.


The documentation for this class was generated from the following file: