1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
#ifndef FWCore_Framework_InputSourceFactory_h
#define FWCore_Framework_InputSourceFactory_h
#include "FWCore/PluginManager/interface/PluginFactory.h"
#include "FWCore/Framework/interface/InputSource.h"
#include <string>
#include <memory>
namespace edm {
class SignallingProductRegistryFiller;
typedef InputSource*(ISFunc)(ParameterSet const&, InputSourceDescription const&);
typedef edmplugin::PluginFactory<ISFunc> InputSourcePluginFactory;
class InputSourceFactory {
public:
~InputSourceFactory();
static InputSourceFactory const* get();
std::unique_ptr<InputSource> makeInputSource(ParameterSet const&, InputSourceDescription const&) const;
private:
InputSourceFactory();
static InputSourceFactory const singleInstance_;
};
} // namespace edm
#endif
|