CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_4_1_8_patch9/src/DataFormats/Provenance/interface/ParameterSetBlob.h

Go to the documentation of this file.
00001 #ifndef DataFormats_Provenance_ParameterSetBlob_h
00002 #define DataFormats_Provenance_ParameterSetBlob_h
00003 
00004 /*----------------------------------------------------------------------
00005   
00006 ParameterSetBlob: A string in which to store a parameter set so that it can be made persistent.
00007 
00008 The ParameterSetBlob is a concatenation of the names and values of the
00009 tracked parameters within a ParameterSet,
00010 
00011 ----------------------------------------------------------------------*/
00012 
00013 #include <iosfwd>
00014 #include <string>
00015 
00016 namespace edm {
00017   class ParameterSetBlob {
00018   public:
00019     typedef std::string value_t;
00020     ParameterSetBlob() : pset_() {}
00021     explicit ParameterSetBlob(value_t const& v) : pset_(v) {}
00022     value_t const& pset() const {return pset_;}
00023     value_t& pset() {return pset_;}
00024   private:
00025     value_t pset_;
00026   };
00027   std::ostream&
00028   operator<<(std::ostream& os, ParameterSetBlob const& blob);
00029 }
00030 #endif