CMS 3D CMS Logo

List of all members | Public Member Functions
ecaldqm::WorkerFactoryStore::Registration< Worker > Struct Template Reference

#include <DQWorker.h>

Public Member Functions

 Registration (std::string const &_name)
 

Detailed Description

template<typename Worker>
struct ecaldqm::WorkerFactoryStore::Registration< Worker >

Definition at line 92 of file DQWorker.h.

Constructor & Destructor Documentation

template<typename Worker >
ecaldqm::WorkerFactoryStore::Registration< Worker >::Registration ( std::string const &  _name)
inline

Definition at line 93 of file DQWorker.h.

References boostedTaus_cff::singleton.

93  {
94  WorkerFactoryStore::singleton()->registerFactory(_name, []() -> DQWorker * { return new Worker(); });
95  }
static WorkerFactoryStore * singleton()
Definition: DQWorker.cc:95
void registerFactory(std::string const &_name, WorkerFactory _f)
Definition: DQWorker.h:98