#include <callback.h>
Inheritance diagram for ConsoleCmdCallback:
Example:
class MyConsoleCmd : public ConsoleCmdCallback { public:
virtual void ConsoleCmd( const HashString &rstrCmd, const HashString &rstrArgs ) { if( rstrCmd == "mycommand" ) doSomething( rstrArgs ); } };
MyConsoleCmd kCmd; Console kConsole;
kConsole.RegisterCommand( &kCmd );When the command mycommand is executed in the console, your callback will be called with the arguments passed to the command in the console.You can also register a default callback in the console, which will be called for all commands that doesn't have an explicit callback registered.
Public Member Functions | |
virtual void | ConsoleCmd (const HashString &rstrCmd, const HashString &rstrArgs)=0 |
|
Process console command
Implemented in Config, and ProfileManager. |