1 #ifndef FWCore_ParameterSet_ParameterDescription_h 2 #define FWCore_ParameterSet_ParameterDescription_h 36 class LuminosityBlockID;
41 class DocFormatHelper;
43 namespace writeParameterValue {
48 void writeValue(std::ostream& os,
int indentation, std::vector<int>
const& value_,
ValueFormat format);
50 void writeValue(std::ostream& os,
int indentation, std::vector<unsigned>
const& value_,
ValueFormat format);
52 void writeValue(std::ostream& os,
int indentation, std::vector<long long>
const& value_,
ValueFormat format);
53 void writeValue(std::ostream& os,
int indentation,
unsigned long long const& value_,
ValueFormat format);
54 void writeValue(std::ostream& os,
int indentation, std::vector<unsigned long long>
const& value_,
ValueFormat format);
56 void writeValue(std::ostream& os,
int indentation, std::vector<double>
const& value_,
ValueFormat format);
59 void writeValue(std::ostream& os,
int indentation, std::vector<std::string>
const& value_,
ValueFormat format);
61 void writeValue(std::ostream& os,
int indentation, std::vector<EventID>
const& value_,
ValueFormat format);
63 void writeValue(std::ostream& os,
int indentation, std::vector<LuminosityBlockID>
const& value_,
ValueFormat format);
65 void writeValue(std::ostream& os,
int indentation, std::vector<LuminosityBlockRange>
const& value_,
ValueFormat format);
67 void writeValue(std::ostream& os,
int indentation, std::vector<EventRange>
const& value_,
ValueFormat format);
69 void writeValue(std::ostream& os,
int indentation, std::vector<InputTag>
const& value_,
ValueFormat format);
179 if (!hasDefault())
return false;
183 void writeCfi_(std::ostream& os,
int indentation)
const override {
187 void writeDoc_(std::ostream& os,
int indentation)
const override {
234 std::set<std::string>& validatedLabels,
235 bool optional)
const override;
237 void printDefault_(std::ostream& os,
241 bool hasNestedContent_()
const override;
243 void printNestedContent_(std::ostream& os,
249 void writeCfi_(std::ostream& os,
int indentation)
const override;
251 void writeDoc_(std::ostream& os,
int indentation)
const override;
253 bool exists_(
ParameterSet const& pset,
bool isTracked)
const override;
268 std::vector<ParameterSet>
const& vPset,
274 std::vector<ParameterSet>
const& vPset,
301 std::set<std::string>& validatedLabels,
302 bool optional)
const override;
304 void printDefault_(std::ostream& os,
308 bool hasNestedContent_()
const override;
310 void printNestedContent_(std::ostream& os,
316 void writeCfi_(std::ostream& os,
int indentation)
const override;
318 void writeDoc_(std::ostream& os,
int indentation)
const override;
320 bool exists_(
ParameterSet const& pset,
bool isTracked)
const override;
324 static void writeOneElementToCfi(
ParameterSet const& pset,
327 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())