CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
EDFilterAdaptor.h
Go to the documentation of this file.
1 #ifndef FWCore_Framework_stream_EDFilterAdaptor_h
2 #define FWCore_Framework_stream_EDFilterAdaptor_h
3 // -*- C++ -*-
4 //
5 // Package: FWCore/Framework
6 // Class : EDFilterAdaptor
7 //
16 //
17 // Original Author: Chris Jones
18 // Created: Fri, 02 Aug 2013 18:09:18 GMT
19 //
20 
21 // system include files
22 
23 // user include files
27 
28 // forward declarations
29 
30 namespace edm {
31  namespace stream {
32 
34 
35  template<typename ABase, typename ModType> struct BaseToAdaptor;
36 
37  template<typename ModType> struct BaseToAdaptor<EDFilterAdaptorBase,ModType> {
39  };
40  }
41 
42  template<>
44  {
46  public:
47  template<typename ModType>
48  static std::unique_ptr<Base> makeModule(ParameterSet const& pset) {
49  typedef typename stream::BaseToAdaptor<Base,ModType>::Type Adaptor;
50  std::unique_ptr<Adaptor> module = std::unique_ptr<Adaptor>(new Adaptor(pset));
51  return std::unique_ptr<Base>(module.release());
52  }
53  };
54 
55 }
56 
57 #endif
static std::unique_ptr< Base > makeModule(ParameterSet const &pset)
Definition: vlib.h:208