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);
56 std::vector<unsigned long long>
const& value_,
59 void writeValue(std::ostream& os,
int indentation, std::vector<double>
const& value_,
ValueFormat format);
62 void writeValue(std::ostream& os,
int indentation, std::vector<std::string>
const& value_,
ValueFormat format);
64 void writeValue(std::ostream& os,
int indentation, std::vector<EventID>
const& value_,
ValueFormat format);
66 void writeValue(std::ostream& os,
int indentation, std::vector<LuminosityBlockID>
const& value_,
ValueFormat format);
70 std::vector<LuminosityBlockRange>
const& value_,
73 void writeValue(std::ostream& os,
int indentation, std::vector<EventRange>
const& value_,
ValueFormat format);
75 void writeValue(std::ostream& os,
int indentation, std::vector<InputTag>
const& value_,
ValueFormat format);
104 template <
typename T>
170 void writeCfi_(std::ostream& os,
int indentation)
const override {
174 void writeDoc_(std::ostream& os,
int indentation)
const override {
214 void validate_(
ParameterSet&
pset, std::set<std::string>& validatedLabels,
bool optional)
const override;
216 void printDefault_(std::ostream& os,
bool writeToCfi,
DocFormatHelper& dfh)
const override;
218 bool hasNestedContent_()
const override;
220 void printNestedContent_(std::ostream& os,
bool optional,
DocFormatHelper& dfh)
const override;
224 void writeCfi_(std::ostream& os,
int indentation)
const override;
226 void writeDoc_(std::ostream& os,
int indentation)
const override;
228 bool exists_(
ParameterSet const& pset,
bool isTracked)
const override;
241 std::vector<ParameterSet>
const& vPset,
247 std::vector<ParameterSet>
const& vPset,
270 void validate_(
ParameterSet&
pset, std::set<std::string>& validatedLabels,
bool optional)
const override;
272 void printDefault_(std::ostream& os,
bool writeToCfi,
DocFormatHelper& dfh)
const override;
274 bool hasNestedContent_()
const override;
276 void printNestedContent_(std::ostream& os,
bool optional,
DocFormatHelper& dfh)
const override;
280 void writeCfi_(std::ostream& os,
int indentation)
const override;
282 void writeDoc_(std::ostream& os,
int indentation)
const override;
284 bool exists_(
ParameterSet const& pset,
bool isTracked)
const override;
288 static void writeOneElementToCfi(
ParameterSet const& pset,
291 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())