CMS 3D CMS Logo

UnpackerFactory.h
Go to the documentation of this file.
1 #ifndef EventFilter_L1TRawToDigi_UnpackerFactory_h
2 #define EventFilter_L1TRawToDigi_UnpackerFactory_h
3 
5 
7 
8 namespace l1t {
9  typedef Unpacker*(unpack_fct)();
11 
13  public:
14  inline static const UnpackerFactory* get() { return &instance_; };
15  std::shared_ptr<Unpacker> make(const std::string&) const;
16 
17  private:
19  static const UnpackerFactory instance_;
20  };
21 } // namespace l1t
22 
23 #define DEFINE_L1T_UNPACKER(type) DEFINE_EDM_PLUGIN(l1t::UnpackerFactoryT, type, #type)
24 
25 #endif
PluginFactory.h
l1t::UnpackerFactory::instance_
static const UnpackerFactory instance_
Definition: UnpackerFactory.h:18
l1t::UnpackerFactory::get
static const UnpackerFactory * get()
Definition: UnpackerFactory.h:14
l1t::Unpacker
Definition: Unpacker.h:11
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
l1t::UnpackerFactory::UnpackerFactory
UnpackerFactory()
Definition: UnpackerFactory.h:18
l1t
delete x;
Definition: CaloConfig.h:22
edmplugin::PluginFactory
Definition: PluginFactory.h:34
l1t::UnpackerFactoryT
edmplugin::PluginFactory< unpack_fct > UnpackerFactoryT
Definition: UnpackerFactory.h:10
l1t::UnpackerFactory::make
std::shared_ptr< Unpacker > make(const std::string &) const
Definition: UnpackerFactory.cc:17
l1t::unpack_fct
Unpacker *() unpack_fct()
Definition: UnpackerFactory.h:9
Unpacker.h
l1t::UnpackerFactory
Definition: UnpackerFactory.h:12