cppexpose
1.0.0.b785e04f23b8
C++ library for type introspection, reflection, and scripting interface
|
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... | |
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.
cppexpose::ComponentRegistry::ComponentRegistry | ( | ) |
Constructor.
|
virtual |
Destructor.
const std::vector<AbstractComponent *>& cppexpose::ComponentRegistry::components | ( | ) | const |
Get components.
void cppexpose::ComponentRegistry::addComponent | ( | AbstractComponent * | component | ) |
Add component.
[in] | component | Component (must NOT be null) |
void cppexpose::ComponentRegistry::clear | ( | ) |
Clear list of components.
|
protected |
List of registered components.