1 #ifndef FWCore_ParameterSet_ParameterDescription_h
2 #define FWCore_ParameterSet_ParameterDescription_h
40 class DocFormatHelper;
42 namespace writeParameterValue {
178 virtual void writeCfi_(std::ostream& os,
int indentation)
const {
182 virtual void writeDoc_(std::ostream& os,
int indentation)
const {
227 std::set<std::string>& validatedLabels,
228 bool optional)
const;
242 virtual void writeCfi_(std::ostream& os,
int indentation)
const;
244 virtual void writeDoc_(std::ostream& os,
int indentation)
const;
261 std::vector<ParameterSet>
const& vPset);
266 std::vector<ParameterSet>
const& vPset);
290 std::set<std::string>& validatedLabels,
291 bool optional)
const;
305 virtual void writeCfi_(std::ostream& os,
int indentation)
const;
307 virtual void writeDoc_(std::ostream& os,
int indentation)
const;
313 static void writeOneElementToCfi(
ParameterSet const& pset,
316 bool& nextOneStartsWithAComma);
ParameterDescription(std::string const &iLabel, T const &value, bool isTracked)
bool existsAs(std::string const ¶meterName, bool trackiness=true) const
checks if a parameter exists as a given type
virtual bool exists_(ParameterSet const &pset) const
virtual ParameterDescriptionNode * clone() const
virtual ~ParameterDescription()
T getDefaultValue() const
ParameterDescription(char const *iLabel, T const &value, bool isTracked)
virtual void validate_(ParameterSet &pset, std::set< std::string > &validatedLabels, bool optional) const
virtual void printDefault_(std::ostream &os, bool writeToCfi, DocFormatHelper &dfh)
value_ptr< ParameterSetDescription > psetDesc_
virtual ParameterDescriptionNode * clone() const
void addParameter(std::string const &name, T const &value)
bool partOfDefaultOfVPSet_
virtual void insertDefault_(ParameterSet &pset) const
virtual bool exists_(ParameterSet const &pset, bool isTracked) const
value_ptr< ParameterSetDescription > psetDesc_
ParameterDescription(std::string const &iLabel, bool isTracked)
ParameterDescription(char const *iLabel, bool isTracked)
void addUntrackedParameter(std::string const &name, T const &value)
virtual ParameterSetDescription const * parameterSetDescription() const
void writeValue(std::ostream &os, int indentation, int const &value_, ValueFormat format)
virtual void printNestedContent_(std::ostream &os, bool optional, DocFormatHelper &dfh)
volatile std::atomic< bool > shutdown_flag false
bool hasNestedContent(int const &value)
std::vector< ParameterSet > vPset_
void setPartOfDefaultOfVPSet(bool value)
virtual ParameterDescriptionNode * clone() const
virtual void writeDoc_(std::ostream &os, int indentation) const
virtual bool hasNestedContent_()
virtual void writeCfi_(std::ostream &os, int indentation) const
std::string const & label() const