CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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>
13 
14 namespace edm {
16 
17  class Factory
18  {
19  public:
20  typedef std::map<std::string, 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 
33  private:
34  Factory();
35  Maker* findMaker(const MakeModuleParams& p) const;
36  static Factory const singleInstance_;
37  mutable MakerMap makers_;
38  };
39 
40 }
41 #endif
std::shared_ptr< maker::ModuleHolder > makeReplacementModule(const edm::ParameterSet &) const
Definition: Factory.cc:77
Maker * findMaker(const MakeModuleParams &p) const
Definition: Factory.cc:34
std::shared_ptr< maker::ModuleHolder > makeModule(const MakeModuleParams &, signalslot::Signal< void(const ModuleDescription &)> &pre, signalslot::Signal< void(const ModuleDescription &)> &post) const
Definition: Factory.cc:68
static Factory const singleInstance_
Definition: Factory.h:36
edmplugin::PluginFactory< Maker *()> MakerPluginFactory
Definition: Factory.h:15
std::map< std::string, Maker * > MakerMap
Definition: Factory.h:20
MakerMap makers_
Definition: Factory.h:37