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

#include <internal_cmd.h>

Inherits DebugCmdInterface.

Public Member Functions

 ProfileCmdInterface (void)
 
void RunResultFunctions (void)
 
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)
 

Static Public Member Functions

static void AddResultFunction (ProfileResultInterface *(*func)(int, const char *const *), const char *name, const char *arg)
 

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 35 of file internal_cmd.h.

Constructor & Destructor Documentation

◆ ProfileCmdInterface()

ProfileCmdInterface::ProfileCmdInterface ( void )
inline

Definition at line 50 of file internal_cmd.h.

Member Function Documentation

◆ AddResultFunction()

void ProfileCmdInterface::AddResultFunction ( ProfileResultInterface *(* func )(int, const char *const *),
const char * name,
const char * arg )
static

Definition at line 34 of file profile_cmd.cpp.

◆ Delete()

virtual void ProfileCmdInterface::Delete ( void )
inlinevirtual

Destroys the current command interface.

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

Implements DebugCmdInterface.

Definition at line 58 of file internal_cmd.h.

◆ Execute()

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

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 63 of file profile_cmd.cpp.

◆ RunResultFunctions()

void ProfileCmdInterface::RunResultFunctions ( void )

Definition at line 49 of file profile_cmd.cpp.


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