test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
FEDRawData.h
Go to the documentation of this file.
1 #ifndef FEDRawData_FEDRawData_h
2 #define FEDRawData_FEDRawData_h
3 
17 #include <vector>
18 #include <cstddef>
19 
20 class FEDRawData {
21 
22  public:
23  typedef std::vector<unsigned char> Data;
24  typedef Data::iterator iterator;
25 
27  FEDRawData();
28 
32  FEDRawData(size_t newsize);
33 
35  FEDRawData(const FEDRawData &);
36 
38  ~FEDRawData();
39 
41  const unsigned char * data() const;
42 
44  unsigned char * data();
45 
47  size_t size() const {return data_.size();}
48 
51  void resize(size_t newsize);
52 
53  private:
54 
55 
57 
58 };
59 
60 #endif
size_t size() const
Lenght of the data buffer in bytes.
Definition: FEDRawData.h:47
FEDRawData()
Default ctor.
Definition: FEDRawData.cc:14
void resize(size_t newsize)
Definition: FEDRawData.cc:32
std::vector< unsigned char > Data
Definition: FEDRawData.h:23
Data data_
Definition: FEDRawData.h:56
const unsigned char * data() const
Return a const pointer to the beginning of the data buffer.
Definition: FEDRawData.cc:28
~FEDRawData()
Dtor.
Definition: FEDRawData.cc:25
Data::iterator iterator
Definition: FEDRawData.h:24