Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:54:30

0001 #ifndef DataFormats_Provenance_ParameterSetBlob_h
0002 #define DataFormats_Provenance_ParameterSetBlob_h
0003 
0004 /*----------------------------------------------------------------------
0005   
0006 ParameterSetBlob: A string in which to store a parameter set so that it can be made persistent.
0007 
0008 The ParameterSetBlob is a concatenation of the names and values of the
0009 tracked parameters within a ParameterSet,
0010 
0011 ----------------------------------------------------------------------*/
0012 
0013 #include <iosfwd>
0014 #include <string>
0015 
0016 namespace edm {
0017   class ParameterSetBlob {
0018   public:
0019     typedef std::string value_t;
0020     ParameterSetBlob() : pset_() {}
0021     explicit ParameterSetBlob(value_t const& v) : pset_(v) {}
0022     value_t const& pset() const { return pset_; }
0023     value_t& pset() { return pset_; }
0024 
0025   private:
0026     value_t pset_;
0027   };
0028   std::ostream& operator<<(std::ostream& os, ParameterSetBlob const& blob);
0029 }  // namespace edm
0030 #endif