KASKADE 7 development version
|
A pluggable factory. More...
#include <factory.hh>
A pluggable factory.
K | the key type the values of which specify which product is to be created |
P | the product type |
Definition at line 58 of file factory.hh.
Public Types | |
typedef K | Key |
typedef P | Product |
Static Public Member Functions | |
static std::unique_ptr< Product > | create (Key key, typename Creator< Product >::Argument arg) |
static std::unique_ptr< Product > | createAny (typename Creator< Product >::Argument arg) |
static void | plugin (Key key, Creator< Product > const *creator) |
Registers a creator for creation of Product objects with the given. More... | |
typedef K Kaskade::Factory< K, P >::Key |
Definition at line 63 of file factory.hh.
typedef P Kaskade::Factory< K, P >::Product |
Definition at line 64 of file factory.hh.
|
inlinestatic |
Definition at line 67 of file factory.hh.
|
inlinestatic |
Definition at line 72 of file factory.hh.
|
inlinestatic |
Registers a creator for creation of Product objects with the given.
Note that the creator object has to exist for the whole lifetime of the program.
Definition at line 86 of file factory.hh.