#include <console.h>
Inheritance diagram for IC_Dispatcher:
Public Member Functions | |
virtual | ~IC_Dispatcher () |
destructor | |
void | registerCommand (IC_Command *cmd) |
register a command (the cmd->getName() should not already be registered else an exception is thrown) | |
bool | hasCommand (const WideString cmdName) |
check if a command is already registered | |
void | dispatch (const WideString cmdName, const array< WideString > &args, IC_MessageSink *pOutput) |
dispatch a command with the name and the supplied args | |
void | deregisterCommand (const WideString cmdName) |
deregister (remove) a command | |
u32 | getRegisteredCommands (array< WideString > &cmdNames) |
get the list of registered commands | |
void | deregisterAllCommands () |
deregister all commands | |
void | printCommandList (IC_MessageSink *pOutput, bool bUsage) |
print a list of commands | |
void | printCommandUsage (const WideString cmdName, IC_MessageSink *pOutput) |
print the command usage | |
void | printCommandDesc (const WideString cmdName, IC_MessageSink *pOutput) |
print detailed description | |
Protected Member Functions | |
IC_Dispatcher () | |
constructor |