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

AbstractFactory Class Template Reference

The abstract interface for the factory. More...

#include <Factory.h>

Inheritance diagram for AbstractFactory

Inheritance graph
[legend]
List of all members.

Public Methods

virtual AbstractProduct* Create () = 0
 Return a new instance of the template type.

virtual const char* GetDescription () = 0

Detailed Description

template<typename AbstractProduct> template class AbstractFactory

The abstract interface for the factory.

Main function is to return a new instance of the template type.

The Abstract Factory pattern is described in "Design Patterns: Elements of Reusable Object-Oriented Software" by Gamma, Helm, Johnson, Vlissides (The Gang of Four).

See http://c2.com/cgi-bin/wiki?AbstractFactory


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