Public Member Functions | Private Attributes | List of all members
dynamicgraph::EntityRegisterer Class Reference

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

#include <factory.h>

Inheritance diagram for dynamicgraph::EntityRegisterer:
Inheritance graph
[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...
 

Private Attributes

const std::string entityName
 Name of the entity registered when the instance has been initialized. 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.

Definition at line 184 of file include/dynamic-graph/factory.h.

Constructor & Destructor Documentation

◆ EntityRegisterer()

dynamicgraph::EntityRegisterer::EntityRegisterer ( const std::string &  entityClassName,
FactoryStorage::EntityConstructor_ptr  maker 
)
explicit

Register entity to the global factory.

Definition at line 107 of file src/dgraph/factory.cpp.

◆ ~EntityRegisterer()

dynamicgraph::EntityRegisterer::~EntityRegisterer ( )

Unregister entity to the global factory.

Definition at line 115 of file src/dgraph/factory.cpp.

Member Data Documentation

◆ entityName

const std::string dynamicgraph::EntityRegisterer::entityName
private

Name of the entity registered when the instance has been initialized.

Definition at line 196 of file include/dynamic-graph/factory.h.


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


dynamic-graph
Author(s): Nicolas Mansard, Olivier Stasse
autogenerated on Sun Oct 22 2023 02:27:08