File indexing completed on 2024-04-06 12:11:58
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 typedef InputSource*(ISFunc)(ParameterSet const&, InputSourceDescription const&);
0013
0014 typedef edmplugin::PluginFactory<ISFunc> InputSourcePluginFactory;
0015
0016 class InputSourceFactory {
0017 public:
0018 ~InputSourceFactory();
0019
0020 static InputSourceFactory const* get();
0021
0022 std::unique_ptr<InputSource> makeInputSource(ParameterSet const&, InputSourceDescription const&) const;
0023
0024 private:
0025 InputSourceFactory();
0026 static InputSourceFactory const singleInstance_;
0027 };
0028
0029 }
0030 #endif