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>

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)

Definition at line 56 of file factory.h.

Constructor & Destructor Documentation

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!

Definition at line 133 of file factory.h.


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


exotica_core
Author(s): Yiming Yang, Michael Camilleri
autogenerated on Sat Apr 10 2021 02:34:50