Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2025-03-13 02:31:48

0001 #ifndef FWCore_Framework_InputSourceFactory_h
0002 #define FWCore_Framework_InputSourceFactory_h
0003 
0004 #include "FWCore/PluginManager/interface/PluginFactory.h"
0005 #include "FWCore/Framework/interface/InputSource.h"
0006 
0007 #include <string>
0008 #include <memory>
0009 
0010 namespace edm {
0011 
0012   class SignallingProductRegistryFiller;
0013 
0014   typedef InputSource*(ISFunc)(ParameterSet const&, InputSourceDescription const&);
0015 
0016   typedef edmplugin::PluginFactory<ISFunc> InputSourcePluginFactory;
0017 
0018   class InputSourceFactory {
0019   public:
0020     ~InputSourceFactory();
0021 
0022     static InputSourceFactory const* get();
0023 
0024     std::unique_ptr<InputSource> makeInputSource(ParameterSet const&, InputSourceDescription const&) const;
0025 
0026   private:
0027     InputSourceFactory();
0028     static InputSourceFactory const singleInstance_;
0029   };
0030 
0031 }  // namespace edm
0032 #endif