![]() |
KASKADE 7 development version
|
A pluggable factory. More...
#include <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. | |
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 60 of file factory.hh.
| typedef K Kaskade::Factory< K, P >::Key |
Definition at line 65 of file factory.hh.
| typedef P Kaskade::Factory< K, P >::Product |
Definition at line 66 of file factory.hh.
|
inlinestatic |
Definition at line 69 of file factory.hh.
|
inlinestatic |
Definition at line 74 of file factory.hh.
|
inlinestatic |
Registers a creator for creation of Product objects with the given.
A previously registered creator for the same key is replaced.
Note that the creator object has to exist for the whole lifetime of the program.
Definition at line 90 of file factory.hh.