FactoryWithNames< AbstractProduct, IdentifierType, ObjectCreatorCallBack, NameType > Class Template Reference

#include <factorywithnames.h>

Inheritance diagram for FactoryWithNames< AbstractProduct, IdentifierType, ObjectCreatorCallBack, NameType >:

Inheritance graph
[legend]
List of all members.

Public Member Functions

vector< NameType > getNames ()
IdentifierType getID (const ASCString &name)
bool registerClass (IdentifierType id, typename FactoryWithNames< AbstractProduct, IdentifierType, typename FactoryWithNames::ObjectCreatorCallBack, NameType >::ObjectCreatorCallBack createFn, Loki::Functor< NameType, LOKI_TYPELIST_1(const IdentifierType &)> nameProvider)
bool registerClass (IdentifierType id, typename FactoryWithNames< AbstractProduct, IdentifierType, typename FactoryWithNames::ObjectCreatorCallBack, NameType >::ObjectCreatorCallBack createFn, NameType name)
AbstractProduct * createObject (IdentifierType id)

Detailed Description

template<class AbstractProduct, typename IdentifierType, typename ObjectCreatorCallBack = AbstractProduct*(*)(), typename NameType = ASCString>
class FactoryWithNames< AbstractProduct, IdentifierType, ObjectCreatorCallBack, NameType >

Definition at line 33 of file factorywithnames.h.


Member Function Documentation

template<class AbstractProduct, typename IdentifierType, typename ObjectCreatorCallBack = AbstractProduct*(*)(), typename NameType = ASCString>
vector<NameType> FactoryWithNames< AbstractProduct, IdentifierType, ObjectCreatorCallBack, NameType >::getNames (  )  [inline]

Definition at line 39 of file factorywithnames.h.

template<class AbstractProduct, typename IdentifierType, typename ObjectCreatorCallBack = AbstractProduct*(*)(), typename NameType = ASCString>
IdentifierType FactoryWithNames< AbstractProduct, IdentifierType, ObjectCreatorCallBack, NameType >::getID ( const ASCString name  )  [inline]

Definition at line 47 of file factorywithnames.h.

template<class AbstractProduct, typename IdentifierType, typename ObjectCreatorCallBack = AbstractProduct*(*)(), typename NameType = ASCString>
bool FactoryWithNames< AbstractProduct, IdentifierType, ObjectCreatorCallBack, NameType >::registerClass ( IdentifierType  id,
typename FactoryWithNames< AbstractProduct, IdentifierType, typename FactoryWithNames< AbstractProduct, IdentifierType, ObjectCreatorCallBack, NameType >::ObjectCreatorCallBack, NameType >::ObjectCreatorCallBack  createFn,
Loki::Functor< NameType, LOKI_TYPELIST_1(const IdentifierType &)>  nameProvider 
) [inline]

Definition at line 52 of file factorywithnames.h.

template<class AbstractProduct, typename IdentifierType, typename ObjectCreatorCallBack = AbstractProduct*(*)(), typename NameType = ASCString>
bool FactoryWithNames< AbstractProduct, IdentifierType, ObjectCreatorCallBack, NameType >::registerClass ( IdentifierType  id,
typename FactoryWithNames< AbstractProduct, IdentifierType, typename FactoryWithNames< AbstractProduct, IdentifierType, ObjectCreatorCallBack, NameType >::ObjectCreatorCallBack, NameType >::ObjectCreatorCallBack  createFn,
NameType  name 
) [inline]

Definition at line 57 of file factorywithnames.h.

template<class AbstractProduct, typename IdentifierType, typename ObjectCreatorCallBack = AbstractProduct*(*)(), typename NameType = ASCString>
AbstractProduct* FactoryWithNames< AbstractProduct, IdentifierType, ObjectCreatorCallBack, NameType >::createObject ( IdentifierType  id  )  [inline]

Reimplemented from Factory< AbstractProduct, IdentifierType >.

Definition at line 66 of file factorywithnames.h.

References Factory< AbstractProduct, IdentifierType >::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