CLAM-Development
1.4.0
|
This class provides a convenient way to add items (creators) into a factory. More...
#include <Factory.hxx>
Classes | |
class | ConcreteCreator |
Public Member Functions | |
FactoryRegistrator (const char *metadata[]) | |
FactoryRegistrator (RegistryKey key, TheFactoryType &fact) | |
FactoryRegistrator (TheFactoryType &fact) | |
FactoryRegistrator (RegistryKey key) | |
~FactoryRegistrator () |
This class provides a convenient way to add items (creators) into a factory.
To add class A (subclass of Base) to the factory it's useful to declare a static FactoryRegistrator object like this: static FactoryRegistrator<MyTypeFactory, MyConcreteType> reg("key"); The FactoryRegistrator constructor called at load-time is in charge to insert the creator to the factory. Various constructors exists giving the user options like using either the singleton factory or a given one.
Definition at line 521 of file Factory.hxx.
|
inline |
Definition at line 526 of file Factory.hxx.
References CLAM_ASSERT, and RunTimeLibraryLoader::FileOfSymbol().
|
inline |
Definition at line 552 of file Factory.hxx.
|
inline |
Definition at line 558 of file Factory.hxx.
|
inline |
Definition at line 566 of file Factory.hxx.
|
inline |
Definition at line 581 of file Factory.hxx.