LLDispatcher Class Reference

#include <lldispatcher.h>

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::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.


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

bool LLDispatcher::isHandlerPresent ( const key_t name  )  const

Definition at line 53 of file lldispatcher.cpp.

References mHandlers.

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 llendl, llwarns, and mHandlers.

Referenced by process_generic_message(), and LLFloaterRegionInfo::processEstateOwnerRequest().

Here is the caller graph for this function:

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

Here is the caller graph for this function:

bool LLDispatcher::unpackMessage ( LLMessageSystem msg,
LLDispatcher::key_t method,
LLUUID invoice,
LLDispatcher::sparam_t parameters 
) [static]


Member Data Documentation

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 Fri May 16 08:43:45 2008 for SecondLife by  doxygen 1.5.5