Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:01:57

0001 #ifndef BlobComplex_h
0002 #define BlobComplex_h
0003 
0004 #include "CondFormats/Serialization/interface/Serializable.h"
0005 
0006 #include <vector>
0007 #include <utility>
0008 
0009 struct BlobComplexData {
0010   BlobComplexData() {
0011     a = 0;
0012     b = 0;
0013   }
0014 
0015   void fill(unsigned int &serial);
0016   void print() const;
0017   bool operator==(const BlobComplexData &rhs) const;
0018   bool operator!=(const BlobComplexData &rhs) const { return !(*this == rhs); }
0019 
0020   unsigned int a, b;
0021   std::vector<unsigned int> values;
0022 
0023   COND_SERIALIZABLE;
0024 };
0025 
0026 struct BlobComplexContent {
0027   BlobComplexContent() {}
0028 
0029   void fill(unsigned int &serial);
0030   void print() const;
0031   bool operator==(const BlobComplexContent &rhs) const;
0032   bool operator!=(const BlobComplexContent &rhs) const { return !(*this == rhs); }
0033 
0034   typedef std::pair<BlobComplexData, unsigned int> Data;
0035 
0036   Data data1;
0037   Data data2;
0038   Data data3;
0039 
0040   COND_SERIALIZABLE;
0041 };
0042 
0043 struct BlobComplexObjects {
0044   BlobComplexObjects() {
0045     a = 0;
0046     b = 0;
0047   }
0048 
0049   void fill(unsigned int &serial);
0050   void print() const;
0051   bool operator==(const BlobComplexObjects &rhs) const;
0052   bool operator!=(const BlobComplexObjects &rhs) const { return !(*this == rhs); }
0053 
0054   unsigned int a, b;
0055   std::vector<BlobComplexContent> content;
0056 
0057   COND_SERIALIZABLE;
0058 };
0059 
0060 struct BlobComplex {
0061   BlobComplex() {}
0062 
0063   void fill(unsigned int &serial);
0064   void print() const;
0065   bool operator==(const BlobComplex &rhs) const;
0066   bool operator!=(const BlobComplex &rhs) const { return !(*this == rhs); }
0067 
0068   std::vector<BlobComplexObjects> objects;
0069 
0070   COND_SERIALIZABLE;
0071 };
0072 
0073 #endif