Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:12:52

0001 #ifndef FWCore_ParameterSet_PluginDescriptionAdaptor_h
0002 #define FWCore_ParameterSet_PluginDescriptionAdaptor_h
0003 // -*- C++ -*-
0004 //
0005 // Package:     FWCore/ParameterSet
0006 // Class  :     PluginDescriptionAdaptor
0007 //
0008 /**\class PluginDescriptionAdaptor PluginDescriptionAdaptor.h "PluginDescriptionAdaptor.h"
0009 
0010  Description: [one line class summary]
0011 
0012  Usage:
0013     <usage>
0014 
0015 */
0016 //
0017 // Original Author:  Chris Jones
0018 //         Created:  Wed, 19 Sep 2018 19:24:28 GMT
0019 //
0020 
0021 // system include files
0022 
0023 // user include files
0024 #include "FWCore/ParameterSet/interface/PluginDescriptionAdaptorBase.h"
0025 #include "FWCore/PluginManager/interface/PluginFactory.h"
0026 
0027 // forward declarations
0028 
0029 namespace edm {
0030 
0031   template <typename BASE, typename T>
0032   class PluginDescriptionAdaptor : public PluginDescriptionAdaptorBase<BASE> {
0033   public:
0034     // ---------- const member functions ---------------------
0035     edm::ParameterSetDescription description() const final {
0036       edm::ParameterSetDescription d;
0037       T::fillPSetDescription(d);
0038       return d;
0039     }
0040   };
0041 }  // namespace edm
0042 #endif