#include <ParameterSwitchBase.h>
Public Member Functions | |
~ParameterSwitchBase () override | |
Public Member Functions inherited from edm::ParameterDescriptionNode | |
void | checkAndGetLabelsAndTypes (std::set< std::string > &usedLabels, std::set< ParameterTypes > ¶meterTypes, std::set< ParameterTypes > &wildcardTypes) const |
virtual ParameterDescriptionNode * | clone () const =0 |
std::string const & | comment () const |
bool | exists (ParameterSet const &pset) const |
bool | hasNestedContent () const |
int | howManyXORSubNodesExist (ParameterSet const &pset) const |
ParameterDescriptionNode () | |
ParameterDescriptionNode (Comment const &iComment) | |
bool | partiallyExists (ParameterSet const &pset) const |
void | print (std::ostream &os, bool optional, bool writeToCfi, DocFormatHelper &dfh) const |
void | printNestedContent (std::ostream &os, bool optional, DocFormatHelper &dfh) const |
void | setComment (std::string const &value) |
void | setComment (char const *value) |
void | validate (ParameterSet &pset, std::set< std::string > &validatedLabels, bool optional) const |
void | writeCfi (std::ostream &os, bool &startWithComma, int indentation, bool &wroteSomething) const |
virtual | ~ParameterDescriptionNode () |
Protected Member Functions | |
bool | hasNestedContent_ () const override |
void | insertAndCheckLabels (std::string const &switchLabel, std::set< std::string > &usedLabels, std::set< std::string > &labels) const |
void | insertAndCheckTypes (ParameterTypes switchType, std::set< ParameterTypes > const &caseParameterTypes, std::set< ParameterTypes > const &caseWildcardTypes, std::set< ParameterTypes > ¶meterTypes, std::set< ParameterTypes > &wildcardTypes) const |
void | printBase (std::ostream &os, bool optional, bool writeToCfi, DocFormatHelper &dfh, std::string const &switchLabel, bool isTracked, std::string const &typeString) const |
void | printNestedContentBase (std::ostream &os, DocFormatHelper &dfh, DocFormatHelper &new_dfh, std::string const &switchLabel) const |
void | throwDuplicateCaseValues (std::string const &switchLabel) const |
void | throwNoCaseForDefault (std::string const &switchLabel) const |
void | throwNoCaseForSwitchValue (std::string const &message) const |
Protected Member Functions inherited from edm::ParameterDescriptionNode | |
virtual void | checkAndGetLabelsAndTypes_ (std::set< std::string > &usedLabels, std::set< ParameterTypes > ¶meterTypes, std::set< ParameterTypes > &wildcardTypes) const =0 |
virtual bool | exists_ (ParameterSet const &pset) const =0 |
virtual void | print_ (std::ostream &, bool, bool, DocFormatHelper &) const |
virtual void | printNestedContent_ (std::ostream &, bool, DocFormatHelper &) const |
virtual void | validate_ (ParameterSet &pset, std::set< std::string > &validatedLabels, bool optional) const =0 |
virtual void | writeCfi_ (std::ostream &os, bool &startWithComma, int indentation, bool &wroteSomething) const =0 |
Static Protected Member Functions | |
template<typename T > | |
static void | printCaseT (std::pair< T, edm::value_ptr< ParameterDescriptionNode > > const &p, std::ostream &os, bool optional, DocFormatHelper &dfh, std::string const &switchLabel) |
Private Member Functions | |
int | howManyXORSubNodesExist_ (ParameterSet const &pset) const override |
bool | partiallyExists_ (ParameterSet const &pset) const override |
Static Private Member Functions | |
static void | printCase (std::pair< bool, edm::value_ptr< ParameterDescriptionNode > > const &p, std::ostream &os, bool optional, DocFormatHelper &dfh, std::string const &switchLabel) |
static void | printCase (std::pair< int, edm::value_ptr< ParameterDescriptionNode > > const &p, std::ostream &os, bool optional, DocFormatHelper &dfh, std::string const &switchLabel) |
static void | printCase (std::pair< std::string, edm::value_ptr< ParameterDescriptionNode > > const &p, std::ostream &os, bool optional, DocFormatHelper &dfh, std::string const &switchLabel) |
Additional Inherited Members | |
Static Public Member Functions inherited from edm::ParameterDescriptionNode | |
static void | printSpaces (std::ostream &os, int n) |
Protected Attributes inherited from edm::ParameterDescriptionNode | |
std::string | comment_ |
Definition at line 16 of file ParameterSwitchBase.h.
|
override |
Definition at line 13 of file ParameterSwitchBase.cc.
|
overrideprotectedvirtual |
Reimplemented from edm::ParameterDescriptionNode.
Definition at line 136 of file ParameterSwitchBase.cc.
|
overrideprivatevirtual |
Implements edm::ParameterDescriptionNode.
Definition at line 230 of file ParameterSwitchBase.cc.
References edm::ParameterDescriptionNode::exists().
Referenced by printCaseT().
|
protected |
Definition at line 21 of file ParameterSwitchBase.cc.
References Exception, edm::errors::LogicError, and mps_update::status.
Referenced by edm::ParameterSwitch< T >::checkAndGetLabelsAndTypes_().
|
protected |
Definition at line 34 of file ParameterSwitchBase.cc.
References Exception, edm::errors::LogicError, and edm::parameterTypeEnumToString().
Referenced by edm::ParameterSwitch< T >::checkAndGetLabelsAndTypes_().
|
overrideprivatevirtual |
Implements edm::ParameterDescriptionNode.
Definition at line 228 of file ParameterSwitchBase.cc.
References edm::ParameterDescriptionNode::exists().
Referenced by printCaseT().
|
protected |
Definition at line 61 of file ParameterSwitchBase.cc.
References edm::DocFormatHelper::brief(), edm::DocFormatHelper::column1(), edm::DocFormatHelper::column2(), edm::DocFormatHelper::column3(), edm::ParameterDescriptionNode::comment(), edm::DocFormatHelper::commentWidth(), edm::DocFormatHelper::counter(), relativeConstraints::empty, edm::DocFormatHelper::indent(), edm::DocFormatHelper::indent2(), edm::DocFormatHelper::pass(), edm::DocFormatHelper::section(), edm::DocFormatHelper::setAtLeast1(), edm::DocFormatHelper::setAtLeast2(), edm::DocFormatHelper::setAtLeast3(), edm::DocFormatHelper::startColumn2(), mitigatedMETSequence_cff::U, and edm::DocFormatHelper::wrapAndPrintText().
Referenced by edm::ParameterSwitch< T >::print_().
|
staticprivate |
Definition at line 169 of file ParameterSwitchBase.cc.
References edm::DocFormatHelper::indent(), AlCaHLTBitMon_ParallelJobs::p, and edm::DocFormatHelper::pass().
Referenced by printCaseT().
|
staticprivate |
Definition at line 192 of file ParameterSwitchBase.cc.
References edm::DocFormatHelper::indent(), AlCaHLTBitMon_ParallelJobs::p, and edm::DocFormatHelper::pass().
|
staticprivate |
Definition at line 210 of file ParameterSwitchBase.cc.
References edm::DocFormatHelper::indent(), AlCaHLTBitMon_ParallelJobs::p, and edm::DocFormatHelper::pass().
|
inlinestaticprotected |
Definition at line 53 of file ParameterSwitchBase.h.
References howManyXORSubNodesExist_(), AlCaHLTBitMon_ParallelJobs::p, partiallyExists_(), printCase(), muonDTDigis_cfi::pset, and AlCaHLTBitMon_QueryRunRegistry::string.
|
protected |
Definition at line 138 of file ParameterSwitchBase.cc.
References edm::DocFormatHelper::brief(), edm::DocFormatHelper::counter(), edm::DocFormatHelper::indentation(), edm::DocFormatHelper::init(), edm::DocFormatHelper::offsetSectionContent(), edm::DocFormatHelper::OTHER, edm::DocFormatHelper::parent(), edm::ParameterDescriptionNode::printSpaces(), edm::DocFormatHelper::section(), edm::DocFormatHelper::setIndentation(), edm::DocFormatHelper::setParent(), edm::DocFormatHelper::setSection(), AlCaHLTBitMon_QueryRunRegistry::string, and edm::DocFormatHelper::TOP.
Referenced by edm::ParameterSwitch< T >::printNestedContent_().
|
protected |
Definition at line 15 of file ParameterSwitchBase.cc.
References Exception, and edm::errors::LogicError.
Referenced by edm::ParameterSwitch< T >::ParameterSwitch().
|
protected |
Definition at line 50 of file ParameterSwitchBase.cc.
References Exception, and edm::errors::LogicError.
Referenced by edm::ParameterSwitch< T >::checkAndGetLabelsAndTypes_().
|
protected |
Definition at line 57 of file ParameterSwitchBase.cc.
References edm::errors::Configuration, and Exception.
Referenced by edm::ParameterSwitch< T >::validate_().