CMS 3D CMS Logo

AllowedLabelsDescriptionBase.h
Go to the documentation of this file.
1 #ifndef FWCore_ParameterSet_AllowedLabelsDescriptionBase_h
2 #define FWCore_ParameterSet_AllowedLabelsDescriptionBase_h
3 
6 
7 #include <vector>
8 #include <string>
9 #include <set>
10 #include <iosfwd>
11 
12 namespace edm {
13 
14  class ParameterSet;
15 
17  public:
19 
20  ParameterTypes type() const { return type_; }
21  bool isTracked() const { return isTracked_; }
22 
23  protected:
25 
27 
28  void printNestedContentBase_(std::ostream& os, bool optional, DocFormatHelper& dfh) const;
29 
30  private:
31  void checkAndGetLabelsAndTypes_(std::set<std::string>& usedLabels,
32  std::set<ParameterTypes>& parameterTypes,
33  std::set<ParameterTypes>& wildcardTypes) const override;
34 
35  void validate_(ParameterSet& pset, std::set<std::string>& validatedLabels, bool optional) const override;
36 
37  void writeCfi_(
38  std::ostream& os, bool optional, bool& startWithComma, int indentation, bool& wroteSomething) const override;
39 
40  void print_(std::ostream& os, bool optional, bool writeToCfi, DocFormatHelper& dfh) const override;
41 
42  bool hasNestedContent_() const override;
43 
44  void printNestedContent_(std::ostream& os, bool optional, DocFormatHelper& dfh) const override;
45 
46  bool exists_(ParameterSet const& pset) const override;
47 
48  bool partiallyExists_(ParameterSet const& pset) const override;
49 
50  int howManyXORSubNodesExist_(ParameterSet const& pset) const override;
51 
52  virtual void validateAllowedLabel_(std::string const& allowedLabel,
54  std::set<std::string>& validatedLabels) const = 0;
55 
58  bool isTracked_;
59  };
60 } // namespace edm
61 
62 #endif
void writeCfi_(std::ostream &os, bool optional, bool &startWithComma, int indentation, bool &wroteSomething) const override
void validate_(ParameterSet &pset, std::set< std::string > &validatedLabels, bool optional) const override
void print_(std::ostream &os, bool optional, bool writeToCfi, DocFormatHelper &dfh) const override
AllowedLabelsDescriptionBase(std::string const &label, ParameterTypes iType, bool isTracked)
char const * label
bool exists_(ParameterSet const &pset) const override
int howManyXORSubNodesExist_(ParameterSet const &pset) const override
virtual void validateAllowedLabel_(std::string const &allowedLabel, ParameterSet &pset, std::set< std::string > &validatedLabels) const =0
void printNestedContent_(std::ostream &os, bool optional, DocFormatHelper &dfh) const override
void printNestedContentBase_(std::ostream &os, bool optional, DocFormatHelper &dfh) const
optional
Definition: Types.py:239
bool partiallyExists_(ParameterSet const &pset) const override
ParameterDescription< std::vector< std::string > > parameterHoldingLabels_
HLT enums.
void checkAndGetLabelsAndTypes_(std::set< std::string > &usedLabels, std::set< ParameterTypes > &parameterTypes, std::set< ParameterTypes > &wildcardTypes) const override