CMS 3D CMS Logo

ParameterSetEntry.h
Go to the documentation of this file.
1 #ifndef ParameterSet_ParameterSetEntry_h
2 #define ParameterSet_ParameterSetEntry_h
3 
12 
13 namespace cms {
14  class Digest;
15 }
16 
17 namespace edm {
18 
19  // forward declaration
20  class ParameterSet;
21 
23  public:
24  // default ctor for serialization
26  ParameterSetEntry(ParameterSet const& pset, bool isTracked);
27  ParameterSetEntry(ParameterSetID const& id, bool isTracked);
28  explicit ParameterSetEntry(std::string const& rep);
29 
30  ~ParameterSetEntry() = default;
31  ParameterSetEntry(ParameterSetEntry const&) = default;
33  ParameterSetEntry& operator=(ParameterSetEntry const&) = default;
34  ParameterSetEntry& operator=(ParameterSetEntry&&) = default;
35 
36  std::string toString() const;
37  void toString(std::string& result) const;
38  void toDigest(cms::Digest &digest) const;
39 
40  bool isTracked() const {return isTracked_;}
41  void setIsTracked(bool v) { isTracked_ = v; }
42 
43  ParameterSetID id() const {return theID_;}
44 
46  ParameterSet const& pset() const;
47  ParameterSet& psetForUpdate();
49  void fillPSet() const;
50 
51  void updateID();
52 
53  std::string dump(unsigned int indent = 0) const;
54  friend std::ostream & operator<<(std::ostream & os, ParameterSetEntry const& psetEntry);
55 
56  private:
57 
58  bool isTracked_;
59  // can be internally reconstituted from the ID, in an
60  // ostensibly const function
62 
64  };
65 
66 }
67 
68 #endif
69 
std::string toString(const char *format,...)
Definition: xdaq_compat.cc:4
rep
Definition: cuy.py:1190
atomic_value_ptr< ParameterSet > thePSet_
Namespace of DDCMS conversion namespace.
ParameterSetID id() const
HLT enums.
std::ostream & operator<<(std::ostream &os, MD5Result const &r)
Definition: Digest.h:46