#include <Factory.h>
Inheritance diagram for RegistryFactory


Public Methods | |
| Product* | Create (iterator i) |
| Construct the correct Product given an iterator. | |
| Product* | Create (KeyType key) |
| Construct the correct Product type given a key. | |
| const char* | GetDescription (iterator i) |
| const char* | GetDescription (KeyType key) |
| ~RegistryFactory () | |
| Destructor. This will probably never get called by the user. | |
Static Public Methods | |
| RegistryFactory<Product, KeyType>* | Instance () |
| The way to get an instance of this class. | |
Protected Methods | |
| RegistryFactory () | |
A convenient container for abstract factories.
Only one instance can be created -- all the rest are clones. It uses the singleton pattern from Design Patterns.
See http://c2.com/cgi-bin/wiki?Singleton
1.2.3 written by Dimitri van Heesch,
© 1997-2000