CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_0/src/DataFormats/FEDRawData/interface/FEDRawData.h

Go to the documentation of this file.
00001 #ifndef FEDRawData_FEDRawData_h
00002 #define FEDRawData_FEDRawData_h
00003 
00019 #include <vector>
00020 #include <cstddef>
00021 
00022 class FEDRawData {
00023 
00024  public:
00025   typedef std::vector<unsigned char> Data;
00026   typedef Data::iterator iterator;
00027 
00029   FEDRawData();
00030 
00034   FEDRawData(size_t newsize);
00035 
00037   FEDRawData(const FEDRawData &);
00038 
00040   ~FEDRawData();
00041 
00043   const unsigned char * data() const;
00044 
00046   unsigned char * data();
00047 
00049   size_t size() const {return data_.size();}
00050     
00053   void resize(size_t newsize);
00054 
00055  private:
00056 
00057 
00058   Data data_;
00059 
00060 };
00061 
00062 #endif