7 #include "boost/bind.hpp"
61 std::set<std::string> & validatedLabels,
62 bool optional)
const {
81 psetDesc_->validate(*containedPSet);
87 if (psetDesc_)
return true;
104 <<
" description of PSet matching wildcard:";
106 if (!dfh.
brief()) os <<
"\n";
108 std::stringstream ss;
110 std::string newSection = ss.str();
117 psetDesc_->print(os, new_dfh);
129 return parameterNames.size() == 1U;
171 ~ParameterWildcard() { }
182 std::set<std::string> & validatedLabels,
183 bool optional)
const {
186 validateMatchingNames(parameterNames, validatedLabels, optional);
202 for (
unsigned i = 0;
i < vpsetEntry->
size(); ++
i) {
209 hasNestedContent_() {
210 if (psetDesc_)
return true;
216 printNestedContent_(std::ostream & os,
225 printSpaces(os, indentation);
227 <<
" description used to validate all PSets which are in the VPSet matching the wildcard:";
229 if (!dfh.
brief()) os <<
"\n";
231 std::stringstream ss;
233 std::string newSection = ss.str();
240 psetDesc_->print(os, new_dfh);
252 return parameterNames.size() == 1U;
WildcardValidationCriteria
virtual bool exists_(ParameterSet const &pset) const
virtual ~ParameterWildcard()
virtual void printNestedContent_(std::ostream &os, bool optional, DocFormatHelper &dfh)
virtual void validate_(ParameterSet &pset, std::set< std::string > &validatedLabels, bool optional) const
virtual bool hasNestedContent_()
virtual ParameterDescriptionNode * clone() const
Func for_all(ForwardSequence &s, Func f)
wrapper for std::for_each
std::vector< std::string > getParameterNamesForType(bool trackiness=true) const
VParameterSetEntry * getPSetVectorForUpdate(std::string const &name)
static void printSpaces(std::ostream &os, int n)
WildcardValidationCriteria criteria() const
void throwIfInvalidPattern(char const *pattern) const
std::vector< ParameterSet >::size_type size() const
ParameterWildcard(std::string const &pattern, WildcardValidationCriteria criteria, bool isTracked)
ParameterSet & psetInVector(int i)
void validateMatchingNames(std::vector< std::string > const &matchingNames, std::set< std::string > &validatedLabels, bool optional) const
ParameterSet * getPSetForUpdate(std::string const &name, bool &isTracked)