LLWidgetClassRegistry Class Reference

#include <llview.h>

Inheritance diagram for LLWidgetClassRegistry:

Inheritance graph
[legend]
Collaboration diagram for LLWidgetClassRegistry:

Collaboration graph
[legend]

List of all members.

Public Types

typedef LLView *(* factory_func_t )(LLXMLNodePtr node, LLView *parent, LLUICtrlFactory *factory)
typedef std::map< LLString,
factory_func_t
factory_map_t

Public Member Functions

void registerCtrl (const LLString &xml_tag, factory_func_t function)
BOOL isTagRegistered (const LLString &xml_tag)
factory_func_t getCreatorFunc (const LLString &xml_tag)
template<class T>
std::string getTag ()

Private Types

typedef std::set< LLStringctrl_name_set_t

Private Member Functions

 LLWidgetClassRegistry ()
virtual ~LLWidgetClassRegistry ()

Private Attributes

ctrl_name_set_t mUICtrlNames
factory_map_t mCreatorFunctions

Friends

class LLSingleton< LLWidgetClassRegistry >


Detailed Description

Definition at line 152 of file llview.h.


Member Typedef Documentation

Definition at line 157 of file llview.h.

typedef std::set<LLString> LLWidgetClassRegistry::ctrl_name_set_t [private]

Definition at line 180 of file llview.h.


Constructor & Destructor Documentation

LLWidgetClassRegistry::LLWidgetClassRegistry (  )  [private]

Definition at line 2911 of file llview.cpp.

virtual LLWidgetClassRegistry::~LLWidgetClassRegistry (  )  [inline, private, virtual]

Definition at line 180 of file llview.h.


Member Function Documentation

void LLWidgetClassRegistry::registerCtrl ( const LLString xml_tag,
LLWidgetClassRegistry::factory_func_t  function 
)

Definition at line 2915 of file llview.cpp.

References mCreatorFunctions, and LLStringBase< char >::toLower().

Referenced by LLRegisterWidget< T >::LLRegisterWidget().

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL LLWidgetClassRegistry::isTagRegistered ( const LLString xml_tag  ) 

Definition at line 2923 of file llview.cpp.

References mCreatorFunctions.

Referenced by LLRegisterWidget< T >::LLRegisterWidget().

Here is the caller graph for this function:

LLWidgetClassRegistry::factory_func_t LLWidgetClassRegistry::getCreatorFunc ( const LLString xml_tag  ) 

Definition at line 2928 of file llview.cpp.

References mCreatorFunctions, and NULL.

Referenced by LLUICtrlFactory::createCtrlWidget().

Here is the caller graph for this function:

template<class T>
std::string LLWidgetClassRegistry::getTag (  )  [inline]

Definition at line 164 of file llview.h.

References mCreatorFunctions.

Referenced by LLView::createDummyWidget().

Here is the caller graph for this function:


Friends And Related Function Documentation

friend class LLSingleton< LLWidgetClassRegistry > [friend]

Definition at line 154 of file llview.h.


Member Data Documentation

Definition at line 183 of file llview.h.

Definition at line 186 of file llview.h.

Referenced by getCreatorFunc(), getTag(), isTagRegistered(), and registerCtrl().


The documentation for this class was generated from the following files:

Generated on Fri May 16 09:39:34 2008 for SecondLife by  doxygen 1.5.5