claw  1.9.0
Classes | Public Member Functions | List of all members
claw::pattern::factory< BaseClass, IdentifierType > Class Template Reference

The design pattern of the factory allow to dynamically instanciate classes of various types given an identifier of this type. More...

#include <factory.hpp>

Public Member Functions

template<typename T >
bool register_type (const identifier_type &id)
 
base_class * create (const identifier_type &id) const
 
bool is_known_type (const identifier_type &id) const
 

Detailed Description

template<typename BaseClass, typename IdentifierType>
class claw::pattern::factory< BaseClass, IdentifierType >

The design pattern of the factory allow to dynamically instanciate classes of various types given an identifier of this type.

Template parameters:

Type requirements:

Definition at line 76 of file factory.hpp.


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