File indexing completed on 2024-04-06 12:12:52
0001 #ifndef FWCore_ParameterSet_PluginDescriptionAdaptor_h
0002 #define FWCore_ParameterSet_PluginDescriptionAdaptor_h
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023
0024 #include "FWCore/ParameterSet/interface/PluginDescriptionAdaptorBase.h"
0025 #include "FWCore/PluginManager/interface/PluginFactory.h"
0026
0027
0028
0029 namespace edm {
0030
0031 template <typename BASE, typename T>
0032 class PluginDescriptionAdaptor : public PluginDescriptionAdaptorBase<BASE> {
0033 public:
0034
0035 edm::ParameterSetDescription description() const final {
0036 edm::ParameterSetDescription d;
0037 T::fillPSetDescription(d);
0038 return d;
0039 }
0040 };
0041 }
0042 #endif