19 #ifndef __CmdHandler_H__ 20 #define __CmdHandler_H__ 22 #include <csutil/ref.h> 23 #include <csutil/refcount.h> 24 #include <csutil/list.h> 25 #include <csutil/csstring.h> 26 #include <csutil/parray.h> 27 #include <csutil/redblacktree.h> 28 #include <iutil/objreg.h> 29 #include <csutil/redblacktree.h> 66 INVISIBLE_TO_USER = 0,
82 const char *Publish(
const csString &
cmd);
90 void Execute(
const char *script,
bool breakSemiColon=
true);
93 void GetSubscribedCommands(csRedBlackTree<psString>& tree);
This interface must be implemented by objects that want to receive command line strings messages...
csPDelArray< CmdSubscription > subscribers
bool visible
is this command visible to user in /help command?
csString cmd
name of command this listener listens to, like "/say"
iCmdSubscriber * subscriber
pointer to the subscriber