Bridge++  Version 1.4.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
factory.h File Reference
#include <string>
#include <map>

Go to the source code of this file.

Classes

class  FactoryTemplate< AbstractProduct, ProductCreator >
 

Typedefs

typedef std::string IdentifierType
 Factory template class. More...
 

Typedef Documentation

typedef std::string IdentifierType

Factory template class.

FactoryTemplate class provides framework of factories for classes which relate identifiers of subclasses (class name string) and instance-creation callbacks (functions).

This template takes two template parameters: AbstractProduct represents typename of abstract base class of the product class family, and ProductCreator specifies the type of function (including types of arguments).

Definition at line 33 of file factory.h.