#include <lldispatcher.h>
Public Types | |
| typedef std::string | key_t |
| typedef std::vector< std::string > | keys_t |
| typedef std::vector< std::string > | sparam_t |
Public Member Functions | |
| LLDispatcher () | |
| virtual | ~LLDispatcher () |
| bool | isHandlerPresent (const key_t &name) const |
| void | copyAllHandlerNames (keys_t &names) const |
| bool | dispatch (const key_t &name, const LLUUID &invoice, const sparam_t &strings) const |
| LLDispatchHandler * | addHandler (const key_t &name, LLDispatchHandler *func) |
Static Public Member Functions | |
| static bool | unpackMessage (LLMessageSystem *msg, key_t &method, LLUUID &invoice, sparam_t ¶meters) |
Protected Types | |
| typedef std::map< key_t, LLDispatchHandler * > | dispatch_map_t |
Protected Attributes | |
| dispatch_map_t | mHandlers |
Definition at line 72 of file lldispatcher.h.
| typedef std::string LLDispatcher::key_t |
Definition at line 75 of file lldispatcher.h.
| typedef std::vector<std::string> LLDispatcher::keys_t |
Definition at line 76 of file lldispatcher.h.
| typedef std::vector<std::string> LLDispatcher::sparam_t |
Definition at line 77 of file lldispatcher.h.
typedef std::map<key_t, LLDispatchHandler*> LLDispatcher::dispatch_map_t [protected] |
Definition at line 114 of file lldispatcher.h.
| LLDispatcher::LLDispatcher | ( | ) |
---------------------------------------------------------------------------- Class lldispatcher ----------------------------------------------------------------------------
Definition at line 45 of file lldispatcher.cpp.
| LLDispatcher::~LLDispatcher | ( | ) | [virtual] |
Definition at line 49 of file lldispatcher.cpp.
| bool LLDispatcher::isHandlerPresent | ( | const key_t & | name | ) | const |
| void LLDispatcher::copyAllHandlerNames | ( | keys_t & | names | ) | const |
| bool LLDispatcher::dispatch | ( | const key_t & | name, | |
| const LLUUID & | invoice, | |||
| const sparam_t & | strings | |||
| ) | const |
Definition at line 72 of file lldispatcher.cpp.
References llendl, llwarns, and mHandlers.
Referenced by process_generic_message(), and LLFloaterRegionInfo::processEstateOwnerRequest().

| LLDispatchHandler * LLDispatcher::addHandler | ( | const key_t & | name, | |
| LLDispatchHandler * | func | |||
| ) |
Definition at line 87 of file lldispatcher.cpp.
References mHandlers, and NULL.
Referenced by LLPanelEstateInfo::initDispatch(), LLMuteList::LLMuteList(), and LLPanelClassified::LLPanelClassified().

| bool LLDispatcher::unpackMessage | ( | LLMessageSystem * | msg, | |
| LLDispatcher::key_t & | method, | |||
| LLUUID & | invoice, | |||
| LLDispatcher::sparam_t & | parameters | |||
| ) | [static] |
Definition at line 107 of file lldispatcher.cpp.
References _PREHASH_Invoice, _PREHASH_Method, _PREHASH_MethodData, _PREHASH_Parameter, _PREHASH_ParamList, LLMessageSystem::getBinaryDataFast(), LLMessageSystem::getNumberOfBlocksFast(), LLMessageSystem::getSizeFast(), LLMessageSystem::getStringFast(), LLMessageSystem::getUUIDFast(), i, MAX_STRING, and S32.
Referenced by process_generic_message(), and LLFloaterRegionInfo::processEstateOwnerRequest().


dispatch_map_t LLDispatcher::mHandlers [protected] |
Definition at line 115 of file lldispatcher.h.
Referenced by addHandler(), copyAllHandlerNames(), dispatch(), and isHandlerPresent().
1.5.5