Factory< AbstractProduct, IdentifierType > Class Template Reference

#include <factory.h>

Inheritance diagram for Factory< AbstractProduct, IdentifierType >:

Inheritance graph
[legend]
List of all members.

Public Types

typedef AbstractProduct *(*) ObjectCreatorCallBack ()

Public Member Functions

bool registerClass (IdentifierType id, ObjectCreatorCallBack createFn)
AbstractProduct * createObject (IdentifierType id)

Detailed Description

template<class AbstractProduct, typename IdentifierType>
class Factory< AbstractProduct, IdentifierType >

Definition at line 37 of file factory.h.


Member Typedef Documentation

template<class AbstractProduct, typename IdentifierType>
typedef AbstractProduct*(*) Factory< AbstractProduct, IdentifierType >::ObjectCreatorCallBack()

Definition at line 39 of file factory.h.


Member Function Documentation

template<class AbstractProduct, typename IdentifierType>
bool Factory< AbstractProduct, IdentifierType >::registerClass ( IdentifierType  id,
ObjectCreatorCallBack  createFn 
) [inline]

Definition at line 44 of file factory.h.

template<class AbstractProduct, typename IdentifierType>
AbstractProduct* Factory< AbstractProduct, IdentifierType >::createObject ( IdentifierType  id  )  [inline]

Reimplemented in FactoryWithNames< AbstractProduct, IdentifierType, ObjectCreatorCallBack, NameType >.

Definition at line 45 of file factory.h.

References fatalError().

Referenced by FactoryWithNames< AbstractProduct, IdentifierType, ObjectCreatorCallBack, NameType >::createObject().


The documentation for this class was generated from the following file:
Generated on Mon May 21 01:46:43 2012 for Advanced Strategic Command by  doxygen 1.5.1