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

#include <factory.h>

Inheritance diagram for Factory< AbstractProduct, IdentifierType >:
Inheritance graph
[legend]

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 >
AbstractProduct* Factory< AbstractProduct, IdentifierType >::createObject ( IdentifierType  id)
inline
template<class AbstractProduct , typename IdentifierType >
bool Factory< AbstractProduct, IdentifierType >::registerClass ( IdentifierType  id,
ObjectCreatorCallBack  createFn 
)
inline

Definition at line 44 of file factory.h.


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