29 isTracked_(isTracked),
30 hasDefault_(hasDefault) {
42 isTracked_(isTracked),
43 hasDefault_(hasDefault) {
64 <<
"It should be " << shouldBe <<
".\n";
73 <<
"\" should be defined " 76 <<
"The type in the configuration is incorrect.\n";
85 <<
"Missing required parameter. It should have label \"" <<
label() <<
"\" and have type \"" << tr <<
" " 87 <<
"The description has no default. The parameter must be defined " 88 "in the configuration\n";
92 std::set<ParameterTypes>& parameterTypes,
93 std::set<ParameterTypes>& )
const {
94 usedLabels.insert(
label());
95 parameterTypes.insert(
type());
99 std::set<std::string>& validatedLabels,
104 validatedLabels.insert(
label());
114 validatedLabels.insert(
label());
123 bool& startWithComma,
126 bool& wroteSomething)
const {
144 bool& startWithComma,
147 bool& wroteSomething)
const {
148 constexpr std::string_view k_endList =
"]";
149 constexpr std::string_view k_endParenthesis =
")";
150 constexpr std::string_view k_endBasicType =
"";
154 wroteSomething =
true;
157 startWithComma =
true;
162 std::string_view endDelimiter = k_endBasicType;
178 endDelimiter = k_endList;
182 endDelimiter = k_endParenthesis;
191 endDelimiter = k_endParenthesis;
203 bool& startWithComma,
206 bool& wroteSomething)
const {
207 wroteSomething =
true;
210 startWithComma =
true;
235 if (dfh.
pass() == 0) {
247 std::ios::fmtflags oldFlags =
os.flags();
255 std::stringstream
ss;
311 }
else if (!writeToCfi) {
312 os <<
"none (do not write to cfi)";
326 os <<
"Section " << dfh.
section() <<
"." << dfh.
counter() <<
" " <<
label() <<
" default contents: ";
bool shouldWriteUntyped(CfiOptions const &iOps) noexcept
std::string const & label() const
bool partiallyExists_(ParameterSet const &pset) const override
int howManyXORSubNodesExist_(ParameterSet const &pset) const override
void validate_(ParameterSet &pset, std::set< std::string > &validatedLabels, bool optional) const override
~ParameterDescriptionBase() override
void writeLabelValueCfi(std::ostream &os, bool optional, bool &startWithComma, int indentation, CfiOptions &, bool &wroteSomething) const
void writeFullCfi(std::ostream &os, bool optional, bool &startWithComma, int indentation, CfiOptions &, bool &wroteSomething) const
void throwMissingRequiredNoDefault() const
std::string parameterTypeEnumToString(ParameterTypes iType)
void writeCfi_(std::ostream &os, bool optional, bool &startWithComma, int indentation, CfiOptions &, bool &wroteSomething) const override
The Signals That Services Can Subscribe To This is based on ActivityRegistry and is current per Services can connect to the signals distributed by the ActivityRegistry in order to monitor the activity of the application Each possible callback has some defined which we here list in angle e< void, edm::EventID const &, edm::Timestamp const & > We also list in braces which AR_WATCH_USING_METHOD_ is used for those or
void throwParameterWrongTrackiness() const
static void printSpaces(std::ostream &os, int n)
void print_(std::ostream &os, bool optional, bool writeToCfi, DocFormatHelper &dfh) const override
std::string const & comment() const
static void check(T const &p, std::string const &id, SelectedProducts const &iProducts, bool iVerbose)
bool exists(ParameterSet const &pset) const
virtual bool exists_(ParameterSet const &pset, bool isTracked) const =0
void throwParameterWrongType() const
virtual void insertDefault_(ParameterSet &pset) const =0
ParameterTypes type() const
ParameterDescriptionBase(std::string const &iLabel, ParameterTypes iType, bool isTracked, bool hasDefault, Comment const &iComment)
virtual void writeDoc_(std::ostream &os, int indentation) const =0
virtual void printDefault_(std::ostream &os, bool writeToCfi, DocFormatHelper &dfh) const
bool hasNestedContent() const
std::pair< bool, NodeGuard > needToSwitchToTyped(std::string_view iNode, CfiOptions &iOpt) noexcept
void printNestedContent_(std::ostream &os, bool optional, DocFormatHelper &dfh) const override
cfi::CfiOptions CfiOptions
void checkAndGetLabelsAndTypes_(std::set< std::string > &usedLabels, std::set< ParameterTypes > ¶meterTypes, std::set< ParameterTypes > &wildcardTypes) const override