#include <lldispatcher.h>
Collaboration diagram for LLDispatcher:

| 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::map<key_t, LLDispatchHandler*> LLDispatcher::dispatch_map_t  [protected] | 
Definition at line 114 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.
| LLDispatcher::LLDispatcher | ( | ) | 
---------------------------------------------------------------------------- Class lldispatcher ----------------------------------------------------------------------------
Definition at line 45 of file lldispatcher.cpp.
| LLDispatcher::~LLDispatcher | ( | ) |  [virtual] | 
Definition at line 49 of file lldispatcher.cpp.
| LLDispatchHandler * LLDispatcher::addHandler | ( | const key_t & | name, | |
| LLDispatchHandler * | func | |||
| ) | 
Definition at line 87 of file lldispatcher.cpp.
References func, mHandlers, and NULL.
Referenced by LLPanelEstateInfo::initDispatch(), LLMuteList::LLMuteList(), and LLPanelClassified::LLPanelClassified().
| bool LLDispatcher::dispatch | ( | const key_t & | name, | |
| const LLUUID & | invoice, | |||
| const sparam_t & | strings | |||
| ) | const | 
Definition at line 72 of file lldispatcher.cpp.
References func, llendl, llwarns, and mHandlers.
Referenced by process_generic_message(), and LLFloaterRegionInfo::processEstateOwnerRequest().
| bool LLDispatcher::isHandlerPresent | ( | const key_t & | name | ) | const | 
| bool LLDispatcher::unpackMessage | ( | LLMessageSystem * | msg, | |
| key_t & | method, | |||
| LLUUID & | invoice, | |||
| sparam_t & | parameters | |||
| ) |  [static] | 
Definition at line 107 of file lldispatcher.cpp.
References _PREHASH_Invoice, _PREHASH_Method, _PREHASH_MethodData, _PREHASH_Parameter, _PREHASH_ParamList, count, LLMessageSystem::getBinaryDataFast(), LLMessageSystem::getNumberOfBlocksFast(), LLMessageSystem::getSizeFast(), LLMessageSystem::getStringFast(), LLMessageSystem::getUUIDFast(), i, MAX_STRING, S32, and size.
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.4.7
 1.4.7