|
Geogram Version 1.9.7
A programming library of geometric algorithms
|
Helper class to register a creator. More...
#include <geogram/basic/factory.h>
Public Member Functions | |
| RegisterCreator (const std::string &name) | |
| Constructs a registration object. | |
Helper class to register a creator.
Declaring a static instance of this class with appropriate parameters allows to register creators to the Factory at program initialization, thus making them available before the program actually starts.
| ConcreteType | the type of the objects to create |
|
inline |
Constructs a registration object.
The constructor calls register_creator() to register a ConcreteType creator bound to name name.
| [in] | name | name of the ConcreteType creator in the Factory |