#include <cmdhandler.h>
List of all members.
Detailed Description
Definition at line 54 of file cmdhandler.h.
Member Enumeration Documentation
- Enumerator:
INVISIBLE_TO_USER |
|
VISIBLE_TO_USER |
|
Definition at line 64 of file cmdhandler.h.
Constructor & Destructor Documentation
CmdHandler::CmdHandler |
( |
iObjectRegistry * |
obj | ) |
|
virtual CmdHandler::~CmdHandler |
( |
| ) |
[virtual] |
Member Function Documentation
void CmdHandler::Execute |
( |
const char * |
script, |
|
|
bool |
breakSemiColon = true |
|
) |
| |
Eventually will execute script commands, but now just wrapper to Publish.
- Parameters:
-
script | The full script to run. |
breakSemiColon | If true assume that the script is a collection seperated by ';'. If false then assume it is one string. |
void CmdHandler::GetSubscribedCommands |
( |
csRedBlackTree< psString > & |
tree | ) |
|
Return a list (alpha-sorted with unique entries) of the subscribed commands.
const char* CmdHandler::Publish |
( |
const csString & |
cmd | ) |
|
Call all HandleCommand funcs for all subscribed commands.
bool CmdHandler::Subscribe |
( |
const char * |
cmd, |
|
|
iCmdSubscriber * |
subscriber |
|
) |
| |
Any subclass of iCmdSubscriber can subscribe to typed commands with this function.
bool CmdHandler::Unsubscribe |
( |
const char * |
cmd, |
|
|
iCmdSubscriber * |
subscriber |
|
) |
| |
Remove subscriber from list.
remove subscriber from list for all commands previously subscribed
Member Data Documentation
The documentation for this class was generated from the following file: