#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 () |
int | howManyXORSubNodesExist (ParameterSet const &pset) const |
bool | partiallyExists (ParameterSet const &pset) const |
void | print (std::ostream &os, bool optional, bool writeToCfi, DocFormatHelper &dfh) |
void | printNestedContent (std::ostream &os, bool optional, DocFormatHelper &dfh) |
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_ () |
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) |
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 &os, bool optional, bool writeToCfi, DocFormatHelper &dfh) |
virtual void | printNestedContent_ (std::ostream &os, bool optional, DocFormatHelper &dfh) |
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 12 of file ParameterSwitchBase.cc.
|
protectedvirtual |
Reimplemented from edm::ParameterDescriptionNode.
Definition at line 158 of file ParameterSwitchBase.cc.
|
privatevirtual |
Implements edm::ParameterDescriptionNode.
Definition at line 268 of file ParameterSwitchBase.cc.
References edm::ParameterDescriptionNode::exists().
|
protected |
Definition at line 26 of file ParameterSwitchBase.cc.
References edm::hlt::Exception, edm::errors::LogicError, and ntuplemaker::status.
Referenced by edm::ParameterSwitch< T >::checkAndGetLabelsAndTypes_().
|
protected |
Definition at line 43 of file ParameterSwitchBase.cc.
References edm::hlt::Exception, edm::errors::LogicError, and edm::parameterTypeEnumToString().
Referenced by edm::ParameterSwitch< T >::checkAndGetLabelsAndTypes_().
|
privatevirtual |
Implements edm::ParameterDescriptionNode.
Definition at line 262 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(), edm::DocFormatHelper::startColumn2(), and edm::DocFormatHelper::wrapAndPrintText().
Referenced by edm::ParameterSwitch< T >::print_().
|
staticprivate |
Definition at line 199 of file ParameterSwitchBase.cc.
References edm::DocFormatHelper::indent(), L1TEmulatorMonitor_cff::p, and edm::DocFormatHelper::pass().
Referenced by printCaseT().
|
staticprivate |
Definition at line 222 of file ParameterSwitchBase.cc.
References edm::DocFormatHelper::indent(), L1TEmulatorMonitor_cff::p, and edm::DocFormatHelper::pass().
|
staticprivate |
Definition at line 242 of file ParameterSwitchBase.cc.
References edm::DocFormatHelper::indent(), L1TEmulatorMonitor_cff::p, and edm::DocFormatHelper::pass().
|
inlinestaticprotected |
Definition at line 53 of file ParameterSwitchBase.h.
References L1TEmulatorMonitor_cff::p, and printCase().
|
protected |
Definition at line 164 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(), and edm::DocFormatHelper::TOP.
Referenced by edm::ParameterSwitch< T >::printNestedContent_().
|
protected |
Definition at line 16 of file ParameterSwitchBase.cc.
References edm::hlt::Exception, and edm::errors::LogicError.
Referenced by edm::ParameterSwitch< T >::ParameterSwitch().
|
protected |
Definition at line 62 of file ParameterSwitchBase.cc.
References edm::hlt::Exception, and edm::errors::LogicError.
Referenced by edm::ParameterSwitch< T >::checkAndGetLabelsAndTypes_().
|
protected |
Definition at line 71 of file ParameterSwitchBase.cc.
References edm::errors::Configuration, edm::hlt::Exception, and argparse::message.
Referenced by edm::ParameterSwitch< T >::validate_().