|
RTC Toolkit 5.1.0
|
A helper class used to perform registration and deregistration of a factory. More...
#include <factoryRegistry.hpp>
Public Member Functions | |
| RegisterFactory () | |
| ~RegisterFactory () | |
A helper class used to perform registration and deregistration of a factory.
This class should be instantiated as a global variable, but only once for each template combination. Doing so will register the given factory when the library in which the global was instantiated is loaded, and deregister it when the library is unloaded or the process terminates.
The following is an example of the code that should be placed inside a source file of a module to register a new factory:
| BaseIf | The abstract/base interface class of the service for which the factory will create instances. |
| Factory | The class of the new factory being registered. |
| rtctk::componentFramework::RegisterFactory< BaseIf, Factory >::RegisterFactory | ( | ) |