Main Page | Class Hierarchy | Class List | Class Members

IC_Dispatcher Class Reference

the dispatcher interface More...

#include <console.h>

Inheritance diagram for IC_Dispatcher:

IC_Console List of all members.

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

Detailed Description

the dispatcher interface


The documentation for this class was generated from the following file:
Generated on Tue Feb 8 11:13:18 2005 for IrrConsole by  doxygen 1.3.9.1