PluginDescriptionAdaptor

Macros

Line Code
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 33 34 35 36 37 38 39 40 41 42
#ifndef FWCore_ParameterSet_PluginDescriptionAdaptor_h
#define FWCore_ParameterSet_PluginDescriptionAdaptor_h
// -*- C++ -*-
//
// Package:     FWCore/ParameterSet
// Class  :     PluginDescriptionAdaptor
//
/**\class PluginDescriptionAdaptor PluginDescriptionAdaptor.h "PluginDescriptionAdaptor.h"

 Description: [one line class summary]

 Usage:
    <usage>

*/
//
// Original Author:  Chris Jones
//         Created:  Wed, 19 Sep 2018 19:24:28 GMT
//

// system include files

// user include files
#include "FWCore/ParameterSet/interface/PluginDescriptionAdaptorBase.h"
#include "FWCore/PluginManager/interface/PluginFactory.h"

// forward declarations

namespace edm {

  template <typename BASE, typename T>
  class PluginDescriptionAdaptor : public PluginDescriptionAdaptorBase<BASE> {
  public:
    // ---------- const member functions ---------------------
    edm::ParameterSetDescription description() const final {
      edm::ParameterSetDescription d;
      T::fillPSetDescription(d);
      return d;
    }
  };
}  // namespace edm
#endif