This class automatically register an Entity to the global factory at initialization and unregister it during instance destruction. More...
#include <dynamic-graph/factory.h>
Public Member Functions | |
EntityRegisterer (const std::string &entityClassName, FactoryStorage::EntityConstructor_ptr maker) | |
Register entity to the global factory. | |
~EntityRegisterer () | |
Unregister entity to the global factory. |
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.
dynamicgraph::EntityRegisterer::EntityRegisterer | ( | const std::string & | entityClassName, |
FactoryStorage::EntityConstructor_ptr | maker | ||
) | [explicit] |
Register entity to the global factory.
dynamicgraph::EntityRegisterer::~EntityRegisterer | ( | ) |
Unregister entity to the global factory.