#include <Factory.hxx>
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 522 of file Factory.hxx.
Public Member Functions | |
FactoryRegistrator (const char *metadata[]) | |
FactoryRegistrator (RegistryKey key, TheFactoryType &fact) | |
FactoryRegistrator (TheFactoryType &fact) | |
FactoryRegistrator (RegistryKey key) | |
~FactoryRegistrator () | |
Classes | |
class | ConcreteCreator |
CLAM::FactoryRegistrator< TheFactoryType, ConcreteProductType >::FactoryRegistrator | ( | const char * | metadata[] | ) | [inline] |
Definition at line 527 of file Factory.hxx.
References CLAM_ASSERT, and RunTimeLibraryLoader::FileOfSymbol().
CLAM::FactoryRegistrator< TheFactoryType, ConcreteProductType >::FactoryRegistrator | ( | RegistryKey | key, | |
TheFactoryType & | fact | |||
) | [inline] |
Definition at line 551 of file Factory.hxx.
CLAM::FactoryRegistrator< TheFactoryType, ConcreteProductType >::FactoryRegistrator | ( | TheFactoryType & | fact | ) | [inline] |
Definition at line 557 of file Factory.hxx.
CLAM::FactoryRegistrator< TheFactoryType, ConcreteProductType >::FactoryRegistrator | ( | RegistryKey | key | ) | [inline] |
Definition at line 565 of file Factory.hxx.
CLAM::FactoryRegistrator< TheFactoryType, ConcreteProductType >::~FactoryRegistrator | ( | ) | [inline] |
Definition at line 580 of file Factory.hxx.