1 #ifndef __COMMANDDISPATCHER_H_INCL__
2 #define __COMMANDDISPATCHER_H_INCL__
CommandDispatcher(PyServiceMgr &services)
PyResult Execute(Client *from, const char *msg)
Separates string to arguments.
void AddCommand(const char *cmd, const char *desc, int64 required_role, CommandFunc function)
virtual ~CommandDispatcher()
std::map< std::string, CommandRecord * > m_commands
PyResult(* CommandFunc)(Client *who, CommandDB *db, PyServiceMgr *services, const Seperator &args)
PyServiceMgr & m_services
CommandRecord(const char *cmd, const char *desc, int64 req_role, CommandFunc &callback)