LLDispatcher Class Reference

#include <lldispatcher.h>

Collaboration diagram for LLDispatcher:

Collaboration graph
[legend]
List of all members.

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
LLDispatchHandleraddHandler (const key_t &name, LLDispatchHandler *func)

Static Public Member Functions

static bool unpackMessage (LLMessageSystem *msg, key_t &method, LLUUID &invoice, sparam_t &parameters)

Protected Types

typedef std::map< key_t, LLDispatchHandler * > dispatch_map_t

Protected Attributes

dispatch_map_t mHandlers

Detailed Description

Definition at line 72 of file lldispatcher.h.


Member Typedef Documentation

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.


Constructor & Destructor Documentation

LLDispatcher::LLDispatcher (  ) 

---------------------------------------------------------------------------- Class lldispatcher ----------------------------------------------------------------------------

Definition at line 45 of file lldispatcher.cpp.

LLDispatcher::~LLDispatcher (  )  [virtual]

Definition at line 49 of file lldispatcher.cpp.


Member Function Documentation

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().

void LLDispatcher::copyAllHandlerNames ( keys_t names  )  const

Definition at line 62 of file lldispatcher.cpp.

References mHandlers.

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

Definition at line 53 of file lldispatcher.cpp.

References mHandlers.

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().


Member Data Documentation

dispatch_map_t LLDispatcher::mHandlers [protected]

Definition at line 115 of file lldispatcher.h.

Referenced by addHandler(), copyAllHandlerNames(), dispatch(), and isHandlerPresent().


The documentation for this class was generated from the following files:
Generated on Thu Jul 1 06:11:14 2010 for Second Life Viewer by  doxygen 1.4.7