CMS 3D CMS Logo

Factory.h
Go to the documentation of this file.
1 #ifndef FWCore_Framework_Factory_h
2 #define FWCore_Framework_Factory_h
3 
8 
9 #include <map>
10 #include <string>
11 #include <memory>
14 
15 namespace edm {
17 
18  class Factory {
19  public:
20  typedef std::map<std::string, edm::propagate_const<Maker*>> MakerMap;
21 
22  ~Factory();
23 
24  static Factory const* get();
25 
26  std::shared_ptr<maker::ModuleHolder> makeModule(const MakeModuleParams&,
27  signalslot::Signal<void(const ModuleDescription&)>& pre,
28  signalslot::Signal<void(const ModuleDescription&)>& post) const;
29 
30  std::shared_ptr<maker::ModuleHolder> makeReplacementModule(const edm::ParameterSet&) const;
31 
32  private:
33  Factory();
34  Maker* findMaker(const MakeModuleParams& p) const;
35  static Factory const singleInstance_;
36  mutable MakerMap makers_;
37  };
38 
39 } // namespace edm
40 #endif
std::shared_ptr< maker::ModuleHolder > makeReplacementModule(const edm::ParameterSet &) const
Definition: Factory.cc:64
edmplugin::PluginFactory< Maker *()> MakerPluginFactory
Definition: Factory.h:16
std::map< std::string, edm::propagate_const< Maker * > > MakerMap
Definition: Factory.h:20
Maker * findMaker(const MakeModuleParams &p) const
Definition: Factory.cc:25
std::shared_ptr< maker::ModuleHolder > makeModule(const MakeModuleParams &, signalslot::Signal< void(const ModuleDescription &)> &pre, signalslot::Signal< void(const ModuleDescription &)> &post) const
Definition: Factory.cc:55
static Factory const singleInstance_
Definition: Factory.h:35
HLT enums.
MakerMap makers_
Definition: Factory.h:36