Exotica
Public Member Functions | List of all members
exotica::Registrar< BaseClass > Class Template Reference

Registration Class for the object type: Also templated: More...

#include <factory.h>

Collaboration diagram for exotica::Registrar< BaseClass >:
Collaboration graph

Public Member Functions

 Registrar (const std::string &name, BaseClass *(*creator)(), const std::string &base_type)
 Public Constructor which is only used to register the new task type. More...
 

Detailed Description

template<typename BaseClass>
class exotica::Registrar< BaseClass >

Registration Class for the object type: Also templated:

Parameters
IThe Identifier type (typically string)
BaseClassThe Base object type (required for the sake of the singleton factory)

Constructor & Destructor Documentation

◆ Registrar()

template<typename BaseClass >
exotica::Registrar< BaseClass >::Registrar ( const std::string &  name,
BaseClass *(*)()  creator,
const std::string &  base_type 
)
inline

Public Constructor which is only used to register the new task type.

Parameters
nameThe name for the new class type
creatorThe creator function for the DERIVED class type but which returns a pointer to the base-class type!

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