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);
174 if (!hasDefault())
return false;
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;
230 virtual void printDefault_(std::ostream& os,
234 virtual bool hasNestedContent_()
const;
236 virtual void printNestedContent_(std::ostream& os,
242 virtual void writeCfi_(std::ostream& os,
int indentation)
const;
244 virtual void writeDoc_(std::ostream& os,
int indentation)
const;
246 virtual bool exists_(
ParameterSet const& pset,
bool isTracked)
const;
261 std::vector<ParameterSet>
const& vPset);
266 std::vector<ParameterSet>
const& vPset);
290 std::set<std::string>& validatedLabels,
291 bool optional)
const;
293 virtual void printDefault_(std::ostream& os,
297 virtual bool hasNestedContent_()
const;
299 virtual void printNestedContent_(std::ostream& os,
305 virtual void writeCfi_(std::ostream& os,
int indentation)
const;
307 virtual void writeDoc_(std::ostream& os,
int indentation)
const;
309 virtual bool exists_(
ParameterSet const& pset,
bool isTracked)
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)
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 bool hasNestedContent_() const
void writeValue(std::ostream &os, int indentation, int const &value_, ValueFormat format)
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 void writeCfi_(std::ostream &os, int indentation) const