#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 |
|
overrideprotectedvirtual |
Reimplemented from edm::ParameterDescriptionNode.
Definition at line 155 of file ParameterSwitchBase.cc.
References printNestedContentBase().
Referenced by printBase().
|
overrideprivatevirtual |
Implements edm::ParameterDescriptionNode.
Definition at line 265 of file ParameterSwitchBase.cc.
References edm::ParameterDescriptionNode::exists().
Referenced by partiallyExists_(), and printCaseT().
|
protected |
Definition at line 27 of file ParameterSwitchBase.cc.
References Exception, insertAndCheckTypes(), edm::errors::LogicError, and mps_update::status.
Referenced by edm::ParameterSwitch< T >::checkAndGetLabelsAndTypes_(), and throwDuplicateCaseValues().
|
protected |
Definition at line 43 of file ParameterSwitchBase.cc.
References Exception, edm::errors::LogicError, edm::parameterTypeEnumToString(), and throwNoCaseForDefault().
Referenced by edm::ParameterSwitch< T >::checkAndGetLabelsAndTypes_(), and insertAndCheckLabels().
|
overrideprivatevirtual |
Implements edm::ParameterDescriptionNode.
Definition at line 259 of file ParameterSwitchBase.cc.
References edm::ParameterDescriptionNode::exists(), and howManyXORSubNodesExist_().
Referenced by printCase(), and printCaseT().
|
protected |
Definition at line 78 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, hasNestedContent_(), 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_(), and throwNoCaseForSwitchValue().
|
staticprivate |
Definition at line 196 of file ParameterSwitchBase.cc.
References edm::DocFormatHelper::indent(), AlCaHLTBitMon_ParallelJobs::p, and edm::DocFormatHelper::pass().
Referenced by printCase(), printCaseT(), and printNestedContentBase().
|
staticprivate |
Definition at line 219 of file ParameterSwitchBase.cc.
References edm::DocFormatHelper::indent(), AlCaHLTBitMon_ParallelJobs::p, edm::DocFormatHelper::pass(), and printCase().
|
staticprivate |
Definition at line 239 of file ParameterSwitchBase.cc.
References edm::DocFormatHelper::indent(), AlCaHLTBitMon_ParallelJobs::p, partiallyExists_(), 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 161 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(), printCase(), edm::ParameterDescriptionNode::printSpaces(), edm::DocFormatHelper::section(), edm::DocFormatHelper::setIndentation(), edm::DocFormatHelper::setParent(), edm::DocFormatHelper::setSection(), AlCaHLTBitMon_QueryRunRegistry::string, and edm::DocFormatHelper::TOP.
Referenced by hasNestedContent_(), and edm::ParameterSwitch< T >::printNestedContent_().
|
protected |
Definition at line 17 of file ParameterSwitchBase.cc.
References Exception, insertAndCheckLabels(), and edm::errors::LogicError.
Referenced by edm::ParameterSwitch< T >::ParameterSwitch(), and ~ParameterSwitchBase().
|
protected |
Definition at line 62 of file ParameterSwitchBase.cc.
References Exception, edm::errors::LogicError, and throwNoCaseForSwitchValue().
Referenced by edm::ParameterSwitch< T >::checkAndGetLabelsAndTypes_(), and insertAndCheckTypes().
|
protected |
Definition at line 71 of file ParameterSwitchBase.cc.
References edm::errors::Configuration, Exception, and printBase().
Referenced by throwNoCaseForDefault(), and edm::ParameterSwitch< T >::validate_().