#include <ParameterSwitchBase.h>
Public Member Functions | |
virtual | ~ParameterSwitchBase () |
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 |
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 | |
virtual bool | hasNestedContent_ () const |
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 | |
virtual int | howManyXORSubNodesExist_ (ParameterSet const &pset) const |
virtual bool | partiallyExists_ (ParameterSet const &pset) const |
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.
|
virtual |
Definition at line 13 of file ParameterSwitchBase.cc.
|
protectedvirtual |
Reimplemented from edm::ParameterDescriptionNode.
Definition at line 155 of file ParameterSwitchBase.cc.
|
privatevirtual |
Implements edm::ParameterDescriptionNode.
Definition at line 265 of file ParameterSwitchBase.cc.
References edm::ParameterDescriptionNode::exists().
|
protected |
Definition at line 27 of file ParameterSwitchBase.cc.
References Exception, edm::errors::LogicError, and mps_update::status.
Referenced by edm::ParameterSwitch< T >::checkAndGetLabelsAndTypes_().
|
protected |
Definition at line 43 of file ParameterSwitchBase.cc.
References Exception, edm::errors::LogicError, and edm::parameterTypeEnumToString().
Referenced by edm::ParameterSwitch< T >::checkAndGetLabelsAndTypes_().
|
privatevirtual |
Implements edm::ParameterDescriptionNode.
Definition at line 259 of file ParameterSwitchBase.cc.
References edm::ParameterDescriptionNode::exists().
|
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, edm::DocFormatHelper::indent(), edm::DocFormatHelper::indent2(), edm::DocFormatHelper::pass(), edm::DocFormatHelper::section(), edm::DocFormatHelper::setAtLeast1(), edm::DocFormatHelper::setAtLeast2(), edm::DocFormatHelper::setAtLeast3(), contentValuesCheck::ss, edm::DocFormatHelper::startColumn2(), and edm::DocFormatHelper::wrapAndPrintText().
Referenced by edm::ParameterSwitch< T >::print_().
|
staticprivate |
Definition at line 196 of file ParameterSwitchBase.cc.
References edm::DocFormatHelper::indent(), AlCaHLTBitMon_ParallelJobs::p, and edm::DocFormatHelper::pass().
Referenced by printCaseT().
|
staticprivate |
Definition at line 219 of file ParameterSwitchBase.cc.
References edm::DocFormatHelper::indent(), AlCaHLTBitMon_ParallelJobs::p, and edm::DocFormatHelper::pass().
|
staticprivate |
Definition at line 239 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 AlCaHLTBitMon_ParallelJobs::p, and printCase().
|
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(), edm::ParameterDescriptionNode::printSpaces(), edm::DocFormatHelper::section(), edm::DocFormatHelper::setIndentation(), edm::DocFormatHelper::setParent(), edm::DocFormatHelper::setSection(), contentValuesCheck::ss, AlCaHLTBitMon_QueryRunRegistry::string, and edm::DocFormatHelper::TOP.
Referenced by edm::ParameterSwitch< T >::printNestedContent_().
|
protected |
Definition at line 17 of file ParameterSwitchBase.cc.
References Exception, and edm::errors::LogicError.
Referenced by edm::ParameterSwitch< T >::ParameterSwitch().
|
protected |
Definition at line 62 of file ParameterSwitchBase.cc.
References Exception, and edm::errors::LogicError.
Referenced by edm::ParameterSwitch< T >::checkAndGetLabelsAndTypes_().
|
protected |
Definition at line 71 of file ParameterSwitchBase.cc.
References edm::errors::Configuration, Exception, and python.rootplot.argparse::message.
Referenced by edm::ParameterSwitch< T >::validate_().