dynamicgraph::EntityRegisterer Class Reference

This class automatically register an Entity to the global factory at initialization and unregister it during instance destruction. More...

#include <dynamic-graph/factory.h>

Inheritance diagram for dynamicgraph::EntityRegisterer:
[legend]
Collaboration diagram for dynamicgraph::EntityRegisterer:
[legend]

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...
 

Detailed Description

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.

Constructor & Destructor Documentation

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.