template<class BaseIf, class Factory>
class rtctk::componentFramework::RegisterFactory< BaseIf, Factory >
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:
namespace {
public:
...
};
}
A simple registry of various factory objects.
Definition factoryRegistry.hpp:47
A helper class used to perform registration and deregistration of a factory.
Definition factoryRegistry.hpp:187
- Template Parameters
-
| 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. |