1 #ifndef FWCore_ParameterSet_PluginDescription_h
2 #define FWCore_ParameterSet_PluginDescription_h
122 std::set<ParameterTypes>& parameterTypes,
123 std::set<ParameterTypes>& wildcardTypes)
const final {}
128 auto n =
pset.getParameterNames();
129 validatedLabels.insert(
n.begin(),
n.end());
133 std::ostream& os,
bool optional,
bool& startWithComma,
int indentation,
bool& wroteSomething)
const final {
141 wroteSomething =
true;
148 int indentation = dfh.indentation();
154 std::stringstream
ss;
155 ss << dfh.section() <<
"." << dfh.counter();
159 os <<
"Section " << newSection <<
" " <<
Factory::get()->category() <<
" Plugins description:\n";
165 unsigned int pluginCount = 0;
167 for (
auto const&
info :
170 if (previousName ==
info.name_) {
174 std::stringstream
ss;
175 ss << dfh.section() <<
"." << dfh.counter();
178 os <<
"Section " << newSection <<
"." << ++pluginCount <<
" " <<
info.name_ <<
" Plugin description:\n";
188 previousName =
info.name_;
const CategoryToInfos & categoryToInfos() const
T getUntrackedParameter(std::string const &, T const &) const
bool existsAs(std::string const ¶meterName, bool trackiness=true) const
checks if a parameter exists as a given type
ParameterDescriptionBase * addUntracked(U const &iLabel, T const &value)
static PluginManager & configure(const Config &)
static const char category[]
void validate(ParameterSet &pset) const
bool partiallyExists_(ParameterSet const &pset) const final
std::string findType(edm::ParameterSet const &iPSet) const
ParameterSetDescription loadDescription(std::string const &iName) const
void writeCfi(std::ostream &os, bool startWithComma, int indentation) const
PluginDescription(std::string typeLabel, bool typeLabelIsTracked)
static bool isAvailable()
void checkAndGetLabelsAndTypes_(std::set< std::string > &usedLabels, std::set< ParameterTypes > ¶meterTypes, std::set< ParameterTypes > &wildcardTypes) const final
void validate_(ParameterSet &pset, std::set< std::string > &validatedLabels, bool optional) const final
PluginManager::Config config()
bool exists_(ParameterSet const &pset) const final
static Factory const * get()
void print(std::ostream &os, DocFormatHelper &dfh) const
void writeCfi_(std::ostream &os, bool optional, bool &startWithComma, int indentation, bool &wroteSomething) const final
void printNestedContent_(std::ostream &os, bool, DocFormatHelper &dfh) const final
ParameterDescriptionBase * add(U const &iLabel, T const &value)
bool hasNestedContent_() const final
static void printSpaces(std::ostream &os, int n)
ParameterDescriptionNode * clone() const final
PluginDescription(std::string typeLabel, std::string defaultType, bool typeLabelIsTracked)
bool exists(ParameterSet const &pset) const
T getParameter(std::string const &) const
int howManyXORSubNodesExist_(ParameterSet const &pset) const final
static PluginManager * get()