1 #ifndef FWCore_ParameterSet_ParameterDescription_h 2 #define FWCore_ParameterSet_ParameterDescription_h 36 class LuminosityBlockID;
42 class DocFormatHelper;
44 namespace writeParameterValue {
49 void writeValue(std::ostream& os,
int indentation, std::vector<int>
const& value_,
ValueFormat format);
51 void writeValue(std::ostream& os,
int indentation, std::vector<unsigned>
const& value_,
ValueFormat format);
53 void writeValue(std::ostream& os,
int indentation, std::vector<long long>
const& value_,
ValueFormat format);
54 void writeValue(std::ostream& os,
int indentation,
unsigned long long const& value_,
ValueFormat format);
57 std::vector<unsigned long long>
const& value_,
60 void writeValue(std::ostream& os,
int indentation, std::vector<double>
const& value_,
ValueFormat format);
63 void writeValue(std::ostream& os,
int indentation, std::vector<std::string>
const& value_,
ValueFormat format);
65 void writeValue(std::ostream& os,
int indentation, std::vector<EventID>
const& value_,
ValueFormat format);
67 void writeValue(std::ostream& os,
int indentation, std::vector<LuminosityBlockID>
const& value_,
ValueFormat format);
71 std::vector<LuminosityBlockRange>
const& value_,
74 void writeValue(std::ostream& os,
int indentation, std::vector<EventRange>
const& value_,
ValueFormat format);
76 void writeValue(std::ostream& os,
int indentation, std::vector<InputTag>
const& value_,
ValueFormat format);
78 void writeValue(std::ostream& os,
int indentation, std::vector<ESInputTag>
const& value_,
ValueFormat format);
109 template <
typename T>
221 void printDefault_(std::ostream& os,
bool writeToCfi,
DocFormatHelper& dfh)
const override;
223 bool hasNestedContent_()
const override;
225 void printNestedContent_(std::ostream& os,
bool optional,
DocFormatHelper& dfh)
const override;
229 void writeCfi_(std::ostream& os,
int indentation)
const override;
231 void writeDoc_(std::ostream& os,
int indentation)
const override;
233 bool exists_(
ParameterSet const& pset,
bool isTracked)
const override;
246 std::vector<ParameterSet>
const& vPset,
252 std::vector<ParameterSet>
const& vPset,
277 void printDefault_(std::ostream& os,
bool writeToCfi,
DocFormatHelper& dfh)
const override;
279 bool hasNestedContent_()
const override;
281 void printNestedContent_(std::ostream& os,
bool optional,
DocFormatHelper& dfh)
const override;
285 void writeCfi_(std::ostream& os,
int indentation)
const override;
287 void writeDoc_(std::ostream& os,
int indentation)
const override;
289 bool exists_(
ParameterSet const& pset,
bool isTracked)
const override;
293 static void writeOneElementToCfi(
ParameterSet const& pset,
296 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())