Advanced Strategic Command
Public Types | Public Member Functions | List of all members
Factory1< AbstractProduct, IdentifierType, creatorParam > Class Template Reference

#include <factory.h>

Public Types

typedef AbstractProduct *(* ObjectCreatorCallBack )(creatorParam param)
 

Public Member Functions

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

Detailed Description

template<class AbstractProduct, typename IdentifierType, typename creatorParam>
class Factory1< AbstractProduct, IdentifierType, creatorParam >

Definition at line 60 of file factory.h.

Member Typedef Documentation

template<class AbstractProduct , typename IdentifierType , typename creatorParam >
typedef AbstractProduct*(* Factory1< AbstractProduct, IdentifierType, creatorParam >::ObjectCreatorCallBack)(creatorParam param)

Definition at line 62 of file factory.h.

Member Function Documentation

template<class AbstractProduct , typename IdentifierType , typename creatorParam >
AbstractProduct* Factory1< AbstractProduct, IdentifierType, creatorParam >::createObject ( IdentifierType  id,
creatorParam  param 
)
inline

Definition at line 68 of file factory.h.

References fatalError().

template<class AbstractProduct , typename IdentifierType , typename creatorParam >
bool Factory1< AbstractProduct, IdentifierType, creatorParam >::registerClass ( IdentifierType  id,
ObjectCreatorCallBack  createFn 
)
inline

Definition at line 67 of file factory.h.


The documentation for this class was generated from the following file: