Public Member Functions | |
void | add (const char *cmd, LLCommandHandler *handler) |
bool | dispatch (const std::string &cmd, const std::vector< std::string > ¶ms) |
Static Public Member Functions | |
static LLCommandHandlerRegistry & | instance () |
Private Attributes | |
std::map< std::string, LLCommandHandler * > | mMap |
Definition at line 44 of file llcommandhandler.cpp.
void LLCommandHandlerRegistry::add | ( | const char * | cmd, | |
LLCommandHandler * | handler | |||
) |
Definition at line 65 of file llcommandhandler.cpp.
References mMap.
Referenced by LLCommandHandler::LLCommandHandler().
bool LLCommandHandlerRegistry::dispatch | ( | const std::string & | cmd, | |
const std::vector< std::string > & | params | |||
) |
Definition at line 70 of file llcommandhandler.cpp.
References LLCommandHandler::handle(), and mMap.
Referenced by LLCommandDispatcher::dispatch().
LLCommandHandlerRegistry & LLCommandHandlerRegistry::instance | ( | ) | [static] |
Definition at line 56 of file llcommandhandler.cpp.
Referenced by LLCommandDispatcher::dispatch(), and LLCommandHandler::LLCommandHandler().
std::map<std::string, LLCommandHandler*> LLCommandHandlerRegistry::mMap [private] |