|
Class Reference for E1039 Core & Analysis Software
|
#include </dev/shm/kenichi/update-github-e1039-doc/e1039-core/database/pdbcal/base/PHGenericFactoryT.h>
Inheritance diagram for PHGenericFactoryT< AbstractProduct, FactoryErrorPolicy >:
Collaboration diagram for PHGenericFactoryT< AbstractProduct, FactoryErrorPolicy >:Classes | |
| class | ProductCreatorPair |
Public Types | |
| typedef AbstractProduct *(* | ProductCreator )() |
| typedef std::string | IdentifierType |
Public Member Functions | |
| AbstractProduct * | create (const char *id) |
| Create an object identified by the string id. More... | |
| void | print (std::ostream &os=std::cout) const |
| Print the list of creators we have. More... | |
| bool | registerCreator (const IdentifierType &id, ProductCreator creator, const char *productname) |
| Register a creator function for id. More... | |
| bool | unregisterCreator (const IdentifierType &id) |
| Unregister a creator. More... | |
Static Public Member Functions | |
| static PHGenericFactoryT < AbstractProduct, FactoryErrorPolicy > & | instance () |
| The factory is a singleton. More... | |
Definition at line 37 of file PHGenericFactoryT.h.
| typedef std::string PHGenericFactoryT< AbstractProduct, FactoryErrorPolicy >::IdentifierType |
Definition at line 42 of file PHGenericFactoryT.h.
| typedef AbstractProduct*(* PHGenericFactoryT< AbstractProduct, FactoryErrorPolicy >::ProductCreator)() |
Definition at line 41 of file PHGenericFactoryT.h.
|
inline |
Create an object identified by the string id.
Definition at line 70 of file PHGenericFactoryT.h.
|
inlinestatic |
The factory is a singleton.
Definition at line 63 of file PHGenericFactoryT.h.
|
inline |
Print the list of creators we have.
Definition at line 95 of file PHGenericFactoryT.h.
|
inline |
Register a creator function for id.
Definition at line 107 of file PHGenericFactoryT.h.
|
inline |
Unregister a creator.
Definition at line 131 of file PHGenericFactoryT.h.