cppexpose  1.0.0.b785e04f23b8
C++ library for type introspection, reflection, and scripting interface
Public Member Functions | Protected Attributes | List of all members
cppexpose::ComponentRegistry Class Reference

Registry for newly registered components. More...

#include <cppexpose/include/cppexpose/plugin/ComponentRegistry.h>

Public Member Functions

 ComponentRegistry ()
 Constructor. More...
 
virtual ~ComponentRegistry ()
 Destructor. More...
 
const std::vector< AbstractComponent * > & components () const
 Get components. More...
 
void addComponent (AbstractComponent *component)
 Add component. More...
 
void clear ()
 Clear list of components. More...
 

Protected Attributes

std::vector< AbstractComponent * > m_components
 List of registered components. More...
 

Detailed Description

Registry for newly registered components.

The ComponentRegister is used to register new components. It as accessed via ComponentManager, where a single static instance of this class is created. Components register themselves at that registry when they are statically initialized. When the ComponentManager update its list of components, it also clears the component registry afterwards.

Constructor & Destructor Documentation

cppexpose::ComponentRegistry::ComponentRegistry ( )

Constructor.

virtual cppexpose::ComponentRegistry::~ComponentRegistry ( )
virtual

Destructor.

Member Function Documentation

const std::vector<AbstractComponent *>& cppexpose::ComponentRegistry::components ( ) const

Get components.

Returns
List of registered components
void cppexpose::ComponentRegistry::addComponent ( AbstractComponent component)

Add component.

Parameters
[in]componentComponent (must NOT be null)
void cppexpose::ComponentRegistry::clear ( )

Clear list of components.

Member Data Documentation

std::vector<AbstractComponent *> cppexpose::ComponentRegistry::m_components
protected

List of registered components.


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