This class automatically register an Entity to the global factory at initialization and unregister it during instance destruction. More...
#include <factory.h>
Public Member Functions | |
EntityRegisterer (const std::string &entityClassName, FactoryStorage::EntityConstructor_ptr maker) | |
Register entity to the global factory. More... | |
~EntityRegisterer () | |
Unregister entity to the global factory. More... | |
Private Attributes | |
const std::string | entityName |
Name of the entity registered when the instance has been initialized. More... | |
This class automatically register an Entity to the global factory at initialization and unregister it during instance destruction.
This class is mainly used by the DYNAMICGRAPH_FACTORY_ENTITY_PLUGIN macro and is of little interest by itself.
Definition at line 184 of file include/dynamic-graph/factory.h.
|
explicit |
Register entity to the global factory.
Definition at line 107 of file src/dgraph/factory.cpp.
dynamicgraph::EntityRegisterer::~EntityRegisterer | ( | ) |
Unregister entity to the global factory.
Definition at line 115 of file src/dgraph/factory.cpp.
|
private |
Name of the entity registered when the instance has been initialized.
Definition at line 196 of file include/dynamic-graph/factory.h.