#include <Factory.h>
Public Types | |
typedef map< string, Factory< T, Arg > * > | FactoryMap |
Dictionary of factories (indexed by name). | |
Public Member Functions | |
Factory (const string &name) | |
Normal Constructor. | |
Static Public Member Functions | |
static FactoryMap & | instance () |
Returns the single instance of the factory dictionay. | |
static T * | make (string name, const Arg &arg) |
Virtual constructor using name. | |
static T * | make (Arg arg) |
Virtual constructor using arguments. | |
Protected Member Functions | |
virtual T * | build (const Arg &arg)=0 |
Builds a new type (should be implemented by descendants). |