Main Page   Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

RegistryFactory Class Template Reference

The Factory Registry. More...

#include <Factory.h>

Inheritance diagram for RegistryFactory

Inheritance graph
[legend]
Collaboration diagram for RegistryFactory:

Collaboration graph
[legend]
List of all members.

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 ()

Detailed Description

template<typename Product, typename KeyType = int> template class RegistryFactory

The Factory Registry.

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


The documentation for this class was generated from the following file:
Generated at Mon Nov 27 01:47:13 2000 for LibPenguinPlay by doxygen1.2.3 written by Dimitri van Heesch, © 1997-2000