CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
XORGroupDescription.h
Go to the documentation of this file.
1 #ifndef FWCore_ParameterSet_XORGroupDescription_h
2 #define FWCore_ParameterSet_XORGroupDescription_h
3 
5 
7 
8 #include <memory>
9 #include <iosfwd>
10 #include <set>
11 #include <string>
12 
13 namespace edm {
14 
15  class ParameterSet;
16  class DocFormatHelper;
17 
19  public:
21  ParameterDescriptionNode const& node_right);
22 
23  XORGroupDescription(std::auto_ptr<ParameterDescriptionNode> node_left,
24  ParameterDescriptionNode const& node_right);
25 
27  std::auto_ptr<ParameterDescriptionNode> node_right);
28 
29  XORGroupDescription(std::auto_ptr<ParameterDescriptionNode> node_left,
30  std::auto_ptr<ParameterDescriptionNode> node_right);
31 
32  virtual ParameterDescriptionNode* clone() const {
33  return new XORGroupDescription(*this);
34  }
35 
36  private:
37 
38  virtual void checkAndGetLabelsAndTypes_(std::set<std::string> & usedLabels,
39  std::set<ParameterTypes> & parameterTypes,
40  std::set<ParameterTypes> & wildcardTypes) const;
41 
42  virtual void validate_(ParameterSet & pset,
43  std::set<std::string> & validatedLabels,
44  bool optional) const;
45 
46  virtual void writeCfi_(std::ostream & os,
47  bool & startWithComma,
48  int indentation,
49  bool & wroteSomething) const;
50 
51  virtual void print_(std::ostream & os,
52  bool optional,
53  bool writeToCfi,
54  DocFormatHelper & dfh);
55 
56  virtual bool hasNestedContent_() {
57  return true;
58  }
59 
60  virtual void printNestedContent_(std::ostream & os,
61  bool optional,
62  DocFormatHelper & dfh);
63 
64  virtual bool exists_(ParameterSet const& pset) const;
65 
66  virtual bool partiallyExists_(ParameterSet const& pset) const;
67 
68  virtual int howManyXORSubNodesExist_(ParameterSet const& pset) const;
69 
70  void throwMoreThanOneParameter() const;
71  void throwAfterValidation() const;
72 
75  };
76 }
77 #endif
virtual void checkAndGetLabelsAndTypes_(std::set< std::string > &usedLabels, std::set< ParameterTypes > &parameterTypes, std::set< ParameterTypes > &wildcardTypes) const
virtual void print_(std::ostream &os, bool optional, bool writeToCfi, DocFormatHelper &dfh)
virtual bool exists_(ParameterSet const &pset) const
virtual bool partiallyExists_(ParameterSet const &pset) const
virtual void validate_(ParameterSet &pset, std::set< std::string > &validatedLabels, bool optional) const
virtual void printNestedContent_(std::ostream &os, bool optional, DocFormatHelper &dfh)
virtual void writeCfi_(std::ostream &os, bool &startWithComma, int indentation, bool &wroteSomething) const
virtual int howManyXORSubNodesExist_(ParameterSet const &pset) const
XORGroupDescription(ParameterDescriptionNode const &node_left, ParameterDescriptionNode const &node_right)
virtual ParameterDescriptionNode * clone() const
edm::value_ptr< ParameterDescriptionNode > node_left_
edm::value_ptr< ParameterDescriptionNode > node_right_