#include <DocFormatHelper.h>
Public Types | |
enum | DescriptionParent { TOP, OR, XOR, AND, OTHER } |
Public Member Functions | |
void | addCategory (std::string const &pluginCategory, std::string const §ion) |
bool | brief () const |
size_t | column1 () const |
size_t | column2 () const |
size_t | column3 () const |
size_t | commentWidth () const |
int | counter () const |
void | decrementCounter () |
DocFormatHelper () | |
void | incrementCounter () |
void | indent (std::ostream &os) const |
void | indent2 (std::ostream &os) const |
int | indentation () const |
void | init () |
size_t | lineWidth () const |
DescriptionParent | parent () const |
int | pass () const |
std::string const & | section () const |
std::string | sectionOfCategoryAlreadyPrinted (std::string const &pluginCategory) const |
void | setAtLeast1 (size_t width) |
void | setAtLeast2 (size_t width) |
void | setAtLeast3 (size_t width) |
void | setBrief (bool value) |
void | setCounter (int value) |
void | setIndentation (int value) |
void | setLineWidth (size_t value) |
void | setParent (DescriptionParent value) |
void | setPass (int value) |
void | setSection (std::string const &value) |
int | startColumn2 () const |
Static Public Member Functions | |
static int | offsetModuleLabel () |
static int | offsetSectionContent () |
static int | offsetTopLevelPSet () |
static void | wrapAndPrintText (std::ostream &os, std::string const &text, size_t indent, size_t suggestedWidth) |
Private Attributes | |
bool | brief_ |
size_t | column1_ |
size_t | column2_ |
size_t | column3_ |
int | counter_ |
int | indentation_ |
size_t | lineWidth_ |
DescriptionParent | parent_ |
int | pass_ |
std::vector< std::pair< std::string, std::string > > | pluginCategoriesAlreadyPrinted_ |
std::string | section_ |
size_t | startColumn2_ |
Definition at line 17 of file DocFormatHelper.h.
Enumerator | |
---|---|
TOP | |
OR | |
XOR | |
AND | |
OTHER |
Definition at line 19 of file DocFormatHelper.h.
|
inline |
Definition at line 21 of file DocFormatHelper.h.
void edm::DocFormatHelper::addCategory | ( | std::string const & | pluginCategory, |
std::string const & | section | ||
) |
Definition at line 146 of file DocFormatHelper.cc.
References pluginCategoriesAlreadyPrinted_, cond::pluginCategory(), and section().
|
inline |
Definition at line 36 of file DocFormatHelper.h.
References brief_.
Referenced by edm::ParameterSetDescription::print(), edm::EmptyGroupDescription::print_(), edm::AllowedLabelsDescriptionBase::print_(), edm::ORGroupDescription::print_(), edm::IfExistsDescription::print_(), edm::ANDGroupDescription::print_(), edm::XORGroupDescription::print_(), edm::ParameterWildcardBase::print_(), edm::ParameterDescriptionBase::print_(), edm::ParameterSwitchBase::printBase(), edm::ParameterDescriptionBase::printDefault_(), edm::ParameterWildcardWithSpecifics::printNestedContent_(), edm::AllowedLabelsDescriptionBase::printNestedContent_(), edm::ORGroupDescription::printNestedContent_(), edm::IfExistsDescription::printNestedContent_(), edm::XORGroupDescription::printNestedContent_(), edm::ANDGroupDescription::printNestedContent_(), edm::AllowedLabelsDescription< ParameterSetDescription >::printNestedContent_(), edm::ParameterDescriptionBase::printNestedContent_(), edm::ParameterWildcard< ParameterSetDescription >::printNestedContent_(), edm::AllowedLabelsDescription< std::vector< ParameterSet > >::printNestedContent_(), edm::ParameterWildcard< std::vector< ParameterSet > >::printNestedContent_(), edm::ParameterDescription< ParameterSetDescription >::printNestedContent_(), edm::ParameterDescription< std::vector< ParameterSet > >::printNestedContent_(), edm::ParameterSwitchBase::printNestedContentBase(), and edm::AllowedLabelsDescriptionBase::printNestedContentBase_().
|
inline |
Definition at line 51 of file DocFormatHelper.h.
References column1_.
Referenced by edm::ParameterWildcardBase::print_(), edm::ParameterDescriptionBase::print_(), and edm::ParameterSwitchBase::printBase().
|
inline |
Definition at line 52 of file DocFormatHelper.h.
References column2_.
Referenced by edm::ParameterWildcardBase::print_(), edm::ParameterDescriptionBase::print_(), and edm::ParameterSwitchBase::printBase().
|
inline |
Definition at line 53 of file DocFormatHelper.h.
References column3_.
Referenced by edm::ParameterWildcardBase::print_(), edm::ParameterDescriptionBase::print_(), and edm::ParameterSwitchBase::printBase().
size_t edm::DocFormatHelper::commentWidth | ( | ) | const |
Definition at line 124 of file DocFormatHelper.cc.
References lineWidth(), startColumn2(), mitigatedMETSequence_cff::U, and ApeEstimator_cff::width.
Referenced by edm::AllowedLabelsDescriptionBase::print_(), edm::ORGroupDescription::print_(), edm::XORGroupDescription::print_(), edm::ANDGroupDescription::print_(), edm::IfExistsDescription::print_(), edm::ParameterWildcardBase::print_(), edm::ParameterDescriptionBase::print_(), and edm::ParameterSwitchBase::printBase().
|
inline |
Definition at line 68 of file DocFormatHelper.h.
References counter_.
Referenced by counter.Counters::__getitem__(), edm::AllowedLabelsDescriptionBase::print_(), edm::ORGroupDescription::print_(), edm::ANDGroupDescription::print_(), edm::XORGroupDescription::print_(), edm::IfExistsDescription::print_(), edm::ParameterWildcardBase::print_(), edm::ParameterSwitchBase::printBase(), edm::ParameterDescriptionBase::printDefault_(), edm::ParameterDescription< ParameterSetDescription >::printDefault_(), edm::ParameterDescription< std::vector< ParameterSet > >::printDefault_(), edm::ParameterWildcardWithSpecifics::printNestedContent_(), edm::ORGroupDescription::printNestedContent_(), edm::IfExistsDescription::printNestedContent_(), edm::XORGroupDescription::printNestedContent_(), edm::ANDGroupDescription::printNestedContent_(), edm::AllowedLabelsDescription< ParameterSetDescription >::printNestedContent_(), edm::ParameterDescriptionBase::printNestedContent_(), edm::ParameterWildcard< ParameterSetDescription >::printNestedContent_(), edm::AllowedLabelsDescription< std::vector< ParameterSet > >::printNestedContent_(), edm::ParameterWildcard< std::vector< ParameterSet > >::printNestedContent_(), edm::ParameterDescription< ParameterSetDescription >::printNestedContent_(), edm::ParameterDescription< std::vector< ParameterSet > >::printNestedContent_(), edm::ParameterSwitchBase::printNestedContentBase(), and edm::AllowedLabelsDescriptionBase::printNestedContentBase_().
|
inline |
Definition at line 71 of file DocFormatHelper.h.
References counter_.
Referenced by edm::ORGroupDescription::print_(), edm::XORGroupDescription::print_(), edm::ANDGroupDescription::print_(), edm::ORGroupDescription::printNestedContent_(), edm::XORGroupDescription::printNestedContent_(), and edm::ANDGroupDescription::printNestedContent_().
|
inline |
Definition at line 70 of file DocFormatHelper.h.
References counter_.
Referenced by edm::ParameterDescriptionNode::print(), and edm::ParameterDescriptionNode::printNestedContent().
void edm::DocFormatHelper::indent | ( | std::ostream & | os | ) | const |
Definition at line 134 of file DocFormatHelper.cc.
References indentation_.
Referenced by ntuplePrintersDiff.TrackingParticlePrinter::_parentageChain(), edm::ParameterSetDescription::print(), edm::EmptyGroupDescription::print_(), edm::AllowedLabelsDescriptionBase::print_(), edm::ORGroupDescription::print_(), edm::ANDGroupDescription::print_(), edm::IfExistsDescription::print_(), edm::XORGroupDescription::print_(), edm::ParameterWildcardBase::print_(), edm::ParameterDescriptionBase::print_(), edm::ParameterSwitchBase::printBase(), edm::ParameterSwitchBase::printCase(), ntuplePrintersDiff.SeedPrinter::printHits(), ntuplePrintersDiff.TrackPrinter::printHits(), edm::ParameterSwitch< T >::printNestedContent_(), edm::AllowedLabelsDescriptionBase::printNestedContentBase_(), ntuplePrintersDiff.TrackingParticlePrinter::printTrackingParticle(), and wrapAndPrintText().
void edm::DocFormatHelper::indent2 | ( | std::ostream & | os | ) | const |
Definition at line 140 of file DocFormatHelper.cc.
References startColumn2_.
Referenced by edm::AllowedLabelsDescriptionBase::print_(), edm::ORGroupDescription::print_(), edm::ANDGroupDescription::print_(), edm::XORGroupDescription::print_(), edm::IfExistsDescription::print_(), edm::ParameterWildcardBase::print_(), edm::ParameterDescriptionBase::print_(), edm::ParameterSwitchBase::printBase(), edm::AllowedLabelsDescription< ParameterSetDescription >::printNestedContent_(), edm::AllowedLabelsDescription< std::vector< ParameterSet > >::printNestedContent_(), and edm::AllowedLabelsDescriptionBase::printNestedContentBase_().
|
inline |
Definition at line 38 of file DocFormatHelper.h.
References indentation_.
Referenced by edm::ParameterDescriptionBase::printDefault_(), edm::ParameterWildcardWithSpecifics::printNestedContent_(), edm::ORGroupDescription::printNestedContent_(), edm::IfExistsDescription::printNestedContent_(), edm::XORGroupDescription::printNestedContent_(), edm::ANDGroupDescription::printNestedContent_(), edm::AllowedLabelsDescription< ParameterSetDescription >::printNestedContent_(), edm::ParameterDescriptionBase::printNestedContent_(), edm::ParameterWildcard< ParameterSetDescription >::printNestedContent_(), edm::AllowedLabelsDescription< std::vector< ParameterSet > >::printNestedContent_(), edm::ParameterWildcard< std::vector< ParameterSet > >::printNestedContent_(), edm::ParameterDescription< ParameterSetDescription >::printNestedContent_(), edm::ParameterDescription< std::vector< ParameterSet > >::printNestedContent_(), edm::ParameterSwitchBase::printNestedContentBase(), and edm::AllowedLabelsDescriptionBase::printNestedContentBase_().
void edm::DocFormatHelper::init | ( | void | ) |
Definition at line 114 of file DocFormatHelper.cc.
References column1_, column2_, column3_, counter_, OTHER, parent_, pass_, section_, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by edm::ORGroupDescription::printNestedContent_(), edm::ANDGroupDescription::printNestedContent_(), edm::XORGroupDescription::printNestedContent_(), edm::IfExistsDescription::printNestedContent_(), edm::PluginDescription< T >::printNestedContent_(), edm::ParameterDescription< ParameterSetDescription >::printNestedContent_(), edm::ParameterDescription< std::vector< ParameterSet > >::printNestedContent_(), edm::ParameterSwitchBase::printNestedContentBase(), and edm::AllowedLabelsDescriptionBase::printNestedContentBase_().
|
inline |
Definition at line 37 of file DocFormatHelper.h.
References lineWidth_.
Referenced by commentWidth().
|
inlinestatic |
Definition at line 83 of file DocFormatHelper.h.
Referenced by edm::ConfigurationDescriptions::print().
|
inlinestatic |
Definition at line 85 of file DocFormatHelper.h.
Referenced by edm::ParameterWildcardWithSpecifics::printNestedContent_(), edm::ORGroupDescription::printNestedContent_(), edm::IfExistsDescription::printNestedContent_(), edm::XORGroupDescription::printNestedContent_(), edm::ANDGroupDescription::printNestedContent_(), edm::AllowedLabelsDescription< ParameterSetDescription >::printNestedContent_(), edm::ParameterDescriptionBase::printNestedContent_(), edm::ParameterWildcard< ParameterSetDescription >::printNestedContent_(), edm::AllowedLabelsDescription< std::vector< ParameterSet > >::printNestedContent_(), edm::ParameterWildcard< std::vector< ParameterSet > >::printNestedContent_(), edm::PluginDescription< T >::printNestedContent_(), edm::ParameterDescription< ParameterSetDescription >::printNestedContent_(), edm::ParameterDescription< std::vector< ParameterSet > >::printNestedContent_(), edm::ParameterSwitchBase::printNestedContentBase(), and edm::AllowedLabelsDescriptionBase::printNestedContentBase_().
|
inlinestatic |
Definition at line 84 of file DocFormatHelper.h.
Referenced by edm::ConfigurationDescriptions::printForLabel().
|
inline |
Definition at line 73 of file DocFormatHelper.h.
References parent_.
Referenced by edm::ORGroupDescription::print_(), edm::XORGroupDescription::print_(), edm::ANDGroupDescription::print_(), edm::ParameterWildcardWithSpecifics::printNestedContent_(), edm::ORGroupDescription::printNestedContent_(), edm::XORGroupDescription::printNestedContent_(), edm::ANDGroupDescription::printNestedContent_(), edm::IfExistsDescription::printNestedContent_(), edm::AllowedLabelsDescription< ParameterSetDescription >::printNestedContent_(), edm::ParameterDescriptionBase::printNestedContent_(), edm::ParameterWildcard< ParameterSetDescription >::printNestedContent_(), edm::AllowedLabelsDescription< std::vector< ParameterSet > >::printNestedContent_(), edm::ParameterWildcard< std::vector< ParameterSet > >::printNestedContent_(), edm::ParameterDescription< ParameterSetDescription >::printNestedContent_(), edm::ParameterDescription< std::vector< ParameterSet > >::printNestedContent_(), edm::ParameterSwitchBase::printNestedContentBase(), and edm::AllowedLabelsDescriptionBase::printNestedContentBase_().
|
inline |
Definition at line 48 of file DocFormatHelper.h.
References pass_.
Referenced by edm::EmptyGroupDescription::print_(), edm::AllowedLabelsDescriptionBase::print_(), edm::ORGroupDescription::print_(), edm::IfExistsDescription::print_(), edm::ANDGroupDescription::print_(), edm::XORGroupDescription::print_(), edm::ParameterWildcardBase::print_(), edm::ParameterDescriptionBase::print_(), edm::ParameterSwitchBase::printBase(), edm::ParameterSwitchBase::printCase(), and edm::ParameterSetDescription::printNode().
|
inline |
Definition at line 45 of file DocFormatHelper.h.
References section_.
Referenced by addCategory(), VarParsing.VarParsing::parseArguments(), edm::AllowedLabelsDescriptionBase::print_(), edm::ORGroupDescription::print_(), edm::IfExistsDescription::print_(), edm::ANDGroupDescription::print_(), edm::XORGroupDescription::print_(), edm::ParameterWildcardBase::print_(), edm::ParameterSwitchBase::printBase(), edm::ParameterDescriptionBase::printDefault_(), edm::ParameterDescription< ParameterSetDescription >::printDefault_(), edm::ParameterDescription< std::vector< ParameterSet > >::printDefault_(), edm::ParameterWildcardWithSpecifics::printNestedContent_(), edm::ORGroupDescription::printNestedContent_(), edm::XORGroupDescription::printNestedContent_(), edm::IfExistsDescription::printNestedContent_(), edm::ANDGroupDescription::printNestedContent_(), edm::AllowedLabelsDescription< ParameterSetDescription >::printNestedContent_(), edm::ParameterDescriptionBase::printNestedContent_(), edm::ParameterWildcard< ParameterSetDescription >::printNestedContent_(), edm::AllowedLabelsDescription< std::vector< ParameterSet > >::printNestedContent_(), edm::ParameterWildcard< std::vector< ParameterSet > >::printNestedContent_(), edm::ParameterDescription< ParameterSetDescription >::printNestedContent_(), edm::ParameterDescription< std::vector< ParameterSet > >::printNestedContent_(), edm::ParameterSwitchBase::printNestedContentBase(), and edm::AllowedLabelsDescriptionBase::printNestedContentBase_().
std::string edm::DocFormatHelper::sectionOfCategoryAlreadyPrinted | ( | std::string const & | pluginCategory | ) | const |
Definition at line 150 of file DocFormatHelper.cc.
References pluginCategoriesAlreadyPrinted_, cond::pluginCategory(), and AlCaHLTBitMon_QueryRunRegistry::string.
|
inline |
Definition at line 55 of file DocFormatHelper.h.
References column1_, and ApeEstimator_cff::width.
Referenced by edm::ParameterWildcardBase::print_(), edm::ParameterDescriptionBase::print_(), and edm::ParameterSwitchBase::printBase().
|
inline |
Definition at line 59 of file DocFormatHelper.h.
References column2_, and ApeEstimator_cff::width.
Referenced by edm::ParameterWildcardBase::print_(), edm::ParameterDescriptionBase::print_(), and edm::ParameterSwitchBase::printBase().
|
inline |
Definition at line 63 of file DocFormatHelper.h.
References column3_, and ApeEstimator_cff::width.
Referenced by edm::ParameterWildcardBase::print_(), edm::ParameterDescriptionBase::print_(), and edm::ParameterSwitchBase::printBase().
|
inline |
Definition at line 41 of file DocFormatHelper.h.
References brief_, and relativeConstraints::value.
Referenced by edm::ConfigurationDescriptions::printForLabel().
|
inline |
Definition at line 69 of file DocFormatHelper.h.
References counter_, and relativeConstraints::value.
Referenced by edm::ParameterSetDescription::print(), edm::ORGroupDescription::printNestedContent_(), edm::ANDGroupDescription::printNestedContent_(), edm::XORGroupDescription::printNestedContent_(), edm::IfExistsDescription::printNestedContent_(), and edm::ParameterSwitch< T >::printNestedContent_().
|
inline |
Definition at line 43 of file DocFormatHelper.h.
References indentation_, and relativeConstraints::value.
Referenced by edm::ConfigurationDescriptions::printForLabel(), edm::ParameterWildcardWithSpecifics::printNestedContent_(), edm::ORGroupDescription::printNestedContent_(), edm::ANDGroupDescription::printNestedContent_(), edm::IfExistsDescription::printNestedContent_(), edm::XORGroupDescription::printNestedContent_(), edm::AllowedLabelsDescription< ParameterSetDescription >::printNestedContent_(), edm::ParameterWildcard< ParameterSetDescription >::printNestedContent_(), edm::AllowedLabelsDescription< std::vector< ParameterSet > >::printNestedContent_(), edm::ParameterWildcard< std::vector< ParameterSet > >::printNestedContent_(), edm::ParameterDescription< ParameterSetDescription >::printNestedContent_(), edm::ParameterDescription< std::vector< ParameterSet > >::printNestedContent_(), and edm::ParameterSwitchBase::printNestedContentBase().
|
inline |
Definition at line 42 of file DocFormatHelper.h.
References lineWidth_, and relativeConstraints::value.
Referenced by edm::ConfigurationDescriptions::printForLabel().
|
inline |
Definition at line 74 of file DocFormatHelper.h.
References parent_, and relativeConstraints::value.
Referenced by edm::ConfigurationDescriptions::printForLabel(), edm::ParameterWildcardWithSpecifics::printNestedContent_(), edm::ORGroupDescription::printNestedContent_(), edm::XORGroupDescription::printNestedContent_(), edm::ANDGroupDescription::printNestedContent_(), edm::IfExistsDescription::printNestedContent_(), edm::AllowedLabelsDescription< ParameterSetDescription >::printNestedContent_(), edm::ParameterWildcard< ParameterSetDescription >::printNestedContent_(), edm::AllowedLabelsDescription< std::vector< ParameterSet > >::printNestedContent_(), edm::ParameterWildcard< std::vector< ParameterSet > >::printNestedContent_(), and edm::ParameterSwitchBase::printNestedContentBase().
|
inline |
Definition at line 49 of file DocFormatHelper.h.
References pass_, and relativeConstraints::value.
Referenced by edm::ParameterSetDescription::print(), edm::ORGroupDescription::printNestedContent_(), edm::ANDGroupDescription::printNestedContent_(), edm::IfExistsDescription::printNestedContent_(), edm::XORGroupDescription::printNestedContent_(), edm::ParameterSwitch< T >::printNestedContent_(), and edm::AllowedLabelsDescriptionBase::printNestedContentBase_().
|
inline |
Definition at line 46 of file DocFormatHelper.h.
References section_, and relativeConstraints::value.
Referenced by edm::ConfigurationDescriptions::printForLabel(), edm::ParameterWildcardWithSpecifics::printNestedContent_(), edm::ORGroupDescription::printNestedContent_(), edm::ANDGroupDescription::printNestedContent_(), edm::XORGroupDescription::printNestedContent_(), edm::IfExistsDescription::printNestedContent_(), edm::AllowedLabelsDescription< ParameterSetDescription >::printNestedContent_(), edm::ParameterWildcard< ParameterSetDescription >::printNestedContent_(), edm::AllowedLabelsDescription< std::vector< ParameterSet > >::printNestedContent_(), edm::ParameterWildcard< std::vector< ParameterSet > >::printNestedContent_(), edm::PluginDescription< T >::printNestedContent_(), edm::ParameterDescription< ParameterSetDescription >::printNestedContent_(), edm::ParameterDescription< std::vector< ParameterSet > >::printNestedContent_(), and edm::ParameterSwitchBase::printNestedContentBase().
|
inline |
Definition at line 39 of file DocFormatHelper.h.
References startColumn2_.
Referenced by commentWidth(), edm::AllowedLabelsDescriptionBase::print_(), edm::ORGroupDescription::print_(), edm::IfExistsDescription::print_(), edm::ANDGroupDescription::print_(), edm::XORGroupDescription::print_(), edm::ParameterWildcardBase::print_(), edm::ParameterDescriptionBase::print_(), edm::ParameterSwitchBase::printBase(), and edm::ParameterDescriptionBase::printDefault_().
|
static |
Definition at line 98 of file DocFormatHelper.cc.
References indent(), and submitPVValidationJobs::text.
Referenced by edm::ConfigurationDescriptions::print(), edm::AllowedLabelsDescriptionBase::print_(), edm::ORGroupDescription::print_(), edm::ANDGroupDescription::print_(), edm::IfExistsDescription::print_(), edm::XORGroupDescription::print_(), edm::ParameterWildcardBase::print_(), edm::ParameterDescriptionBase::print_(), edm::ParameterSwitchBase::printBase(), and edm::ConfigurationDescriptions::printForLabel().
|
private |
Definition at line 92 of file DocFormatHelper.h.
Referenced by brief(), and setBrief().
|
private |
Definition at line 101 of file DocFormatHelper.h.
Referenced by column1(), init(), and setAtLeast1().
|
private |
Definition at line 102 of file DocFormatHelper.h.
Referenced by column2(), init(), and setAtLeast2().
|
private |
Definition at line 103 of file DocFormatHelper.h.
Referenced by column3(), init(), and setAtLeast3().
|
private |
Definition at line 105 of file DocFormatHelper.h.
Referenced by counter(), decrementCounter(), incrementCounter(), init(), and setCounter().
|
private |
Definition at line 94 of file DocFormatHelper.h.
Referenced by indent(), indentation(), and setIndentation().
|
private |
Definition at line 93 of file DocFormatHelper.h.
Referenced by lineWidth(), and setLineWidth().
|
private |
Definition at line 107 of file DocFormatHelper.h.
Referenced by init(), parent(), and setParent().
|
private |
Definition at line 99 of file DocFormatHelper.h.
|
private |
Definition at line 91 of file DocFormatHelper.h.
Referenced by addCategory(), and sectionOfCategoryAlreadyPrinted().
|
private |
Definition at line 97 of file DocFormatHelper.h.
Referenced by init(), section(), and setSection().
|
private |
Definition at line 95 of file DocFormatHelper.h.
Referenced by indent2(), and startColumn2().