2 #ifndef FWCore_ParameterSet_ParameterDescriptionBase_h
3 #define FWCore_ParameterSet_ParameterDescriptionBase_h
31 class DocFormatHelper;
58 std::set<ParameterTypes>& parameterTypes,
59 std::set<ParameterTypes>& wildcardTypes)
const override;
64 std::ostream& os,
bool optional,
bool& startWithComma,
int indentation,
bool& wroteSomething)
const override;
70 virtual void writeCfi_(std::ostream& os,
int indentation)
const = 0;
72 virtual void writeDoc_(std::ostream& os,
int indentation)
const = 0;
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
virtual void printDefault_(std::ostream &os, bool writeToCfi, DocFormatHelper &dfh) const
void writeCfi_(std::ostream &os, bool optional, bool &startWithComma, int indentation, bool &wroteSomething) const override
~ParameterDescriptionBase() override
void throwMissingRequiredNoDefault() const
void throwParameterWrongType() const
virtual ParameterSetDescription * parameterSetDescription()
ParameterTypes type() const
void print_(std::ostream &os, bool optional, bool writeToCfi, DocFormatHelper &dfh) const override
void throwParameterWrongTrackiness() const
virtual ParameterSetDescription const * parameterSetDescription() const
virtual bool exists_(ParameterSet const &pset, bool isTracked) const =0
virtual void insertDefault_(ParameterSet &pset) const =0
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 bool exists_(ParameterSet const &pset) const =0
void printNestedContent_(std::ostream &os, bool optional, DocFormatHelper &dfh) const override
void checkAndGetLabelsAndTypes_(std::set< std::string > &usedLabels, std::set< ParameterTypes > ¶meterTypes, std::set< ParameterTypes > &wildcardTypes) const override
std::string const & label() const