CMS 3D CMS Logo

List of all members | Public Member Functions | Static Public Member Functions | Public Attributes
edmtest::AnotherMakerWithRecursivePlugin Struct Reference
Inheritance diagram for edmtest::AnotherMakerWithRecursivePlugin:
edmtest::AnotherIntMakerBase

Public Member Functions

 AnotherMakerWithRecursivePlugin (edm::ParameterSet const &iPSet)
 
int value () const final
 
- Public Member Functions inherited from edmtest::AnotherIntMakerBase
virtual ~AnotherIntMakerBase ()=default
 

Static Public Member Functions

static void fillPSetDescription (edm::ParameterSetDescription &iDesc)
 

Public Attributes

std::unique_ptr< AnotherIntMakerBaserecursivePluginHelper_
 
int value_
 

Detailed Description

Definition at line 58 of file ProducerWithPSetDesc.cc.

Constructor & Destructor Documentation

◆ AnotherMakerWithRecursivePlugin()

edmtest::AnotherMakerWithRecursivePlugin::AnotherMakerWithRecursivePlugin ( edm::ParameterSet const &  iPSet)
inlineexplicit

Definition at line 59 of file ProducerWithPSetDesc.cc.

References edm::ParameterSet::getParameter().

60  : value_{iPSet.getParameter<int>("value")} {
61  auto recursivePluginPSet = iPSet.getParameter<edm::ParameterSet>("pluginRecursive");
63  AnotherIntFactory::get()->create(recursivePluginPSet.getParameter<std::string>("type"), recursivePluginPSet);
64  }
std::unique_ptr< AnotherIntMakerBase > recursivePluginHelper_
#define get

Member Function Documentation

◆ fillPSetDescription()

static void edmtest::AnotherMakerWithRecursivePlugin::fillPSetDescription ( edm::ParameterSetDescription iDesc)
inlinestatic

Definition at line 67 of file ProducerWithPSetDesc.cc.

References edm::ParameterSetDescription::add(), and edm::ParameterSetDescription::addNode().

67  {
68  iDesc.add<int>("value", 5);
69 
71  pluginDesc.addNode(edm::PluginDescription<AnotherIntFactory>("type", true));
72  iDesc.add<edm::ParameterSetDescription>("pluginRecursive", pluginDesc);
73  }
ParameterDescriptionNode * addNode(ParameterDescriptionNode const &node)
ParameterDescriptionBase * add(U const &iLabel, T const &value)

◆ value()

int edmtest::AnotherMakerWithRecursivePlugin::value ( ) const
inlinefinalvirtual

Member Data Documentation

◆ recursivePluginHelper_

std::unique_ptr<AnotherIntMakerBase> edmtest::AnotherMakerWithRecursivePlugin::recursivePluginHelper_

Definition at line 75 of file ProducerWithPSetDesc.cc.

◆ value_

int edmtest::AnotherMakerWithRecursivePlugin::value_

Definition at line 76 of file ProducerWithPSetDesc.cc.

Referenced by value().