1 #ifndef FWCore_ParameterSet_ParameterDescription_h 2 #define FWCore_ParameterSet_ParameterDescription_h 35 class LuminosityBlockID;
40 class DocFormatHelper;
42 namespace writeParameterValue {
47 void writeValue(std::ostream& os,
int indentation, std::vector<int>
const& value_,
ValueFormat format);
49 void writeValue(std::ostream& os,
int indentation, std::vector<unsigned>
const& value_,
ValueFormat format);
51 void writeValue(std::ostream& os,
int indentation, std::vector<long long>
const& value_,
ValueFormat format);
52 void writeValue(std::ostream& os,
int indentation,
unsigned long long const& value_,
ValueFormat format);
53 void writeValue(std::ostream& os,
int indentation, std::vector<unsigned long long>
const& value_,
ValueFormat format);
55 void writeValue(std::ostream& os,
int indentation, std::vector<double>
const& value_,
ValueFormat format);
58 void writeValue(std::ostream& os,
int indentation, std::vector<std::string>
const& value_,
ValueFormat format);
60 void writeValue(std::ostream& os,
int indentation, std::vector<EventID>
const& value_,
ValueFormat format);
62 void writeValue(std::ostream& os,
int indentation, std::vector<LuminosityBlockID>
const& value_,
ValueFormat format);
64 void writeValue(std::ostream& os,
int indentation, std::vector<LuminosityBlockRange>
const& value_,
ValueFormat format);
66 void writeValue(std::ostream& os,
int indentation, std::vector<EventRange>
const& value_,
ValueFormat format);
68 void writeValue(std::ostream& os,
int indentation, std::vector<InputTag>
const& value_,
ValueFormat format);
178 if (!hasDefault())
return false;
182 void writeCfi_(std::ostream& os,
int indentation)
const override {
186 void writeDoc_(std::ostream& os,
int indentation)
const override {
233 std::set<std::string>& validatedLabels,
234 bool optional)
const override;
236 void printDefault_(std::ostream& os,
240 bool hasNestedContent_()
const override;
242 void printNestedContent_(std::ostream& os,
248 void writeCfi_(std::ostream& os,
int indentation)
const override;
250 void writeDoc_(std::ostream& os,
int indentation)
const override;
252 bool exists_(
ParameterSet const& pset,
bool isTracked)
const override;
267 std::vector<ParameterSet>
const& vPset,
273 std::vector<ParameterSet>
const& vPset,
300 std::set<std::string>& validatedLabels,
301 bool optional)
const override;
303 void printDefault_(std::ostream& os,
307 bool hasNestedContent_()
const override;
309 void printNestedContent_(std::ostream& os,
315 void writeCfi_(std::ostream& os,
int indentation)
const override;
317 void writeDoc_(std::ostream& os,
int indentation)
const override;
319 bool exists_(
ParameterSet const& pset,
bool isTracked)
const override;
323 static void writeOneElementToCfi(
ParameterSet const& pset,
326 bool& nextOneStartsWithAComma);
ParameterDescription(char const *iLabel, bool isTracked, Comment const &iComment=Comment())
void writeDoc_(std::ostream &os, int indentation) const override
bool existsAs(std::string const ¶meterName, bool trackiness=true) const
checks if a parameter exists as a given type
bool exists_(ParameterSet const &pset) const override
ParameterDescriptionNode * clone() const override
ParameterDescriptionNode * clone() const override
ParameterDescriptionNode * clone() const override
bool exists_(ParameterSet const &pset, bool isTracked) const override
T getDefaultValue() const
value_ptr< ParameterSetDescription > psetDesc_
void writeCfi_(std::ostream &os, int indentation) const override
void addParameter(std::string const &name, T const &value)
bool partOfDefaultOfVPSet_
~ParameterDescription() override
value_ptr< ParameterSetDescription > psetDesc_
ParameterDescription(std::string const &iLabel, T const &value, bool isTracked, Comment const &iComment=Comment())
void insertDefault_(ParameterSet &pset) const override
void addUntrackedParameter(std::string const &name, T const &value)
bool hasNestedContent_() const override
void writeValue(std::ostream &os, int indentation, int const &value_, ValueFormat format)
ParameterDescription(std::string const &iLabel, bool isTracked, Comment const &iComment=Comment())
bool hasNestedContent(int const &value)
std::vector< ParameterSet > vPset_
void setPartOfDefaultOfVPSet(bool value)
ParameterDescription(char const *iLabel, T const &value, bool isTracked, Comment const &iComment=Comment())