CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
FEDRawData.h
Go to the documentation of this file.
1 #ifndef FEDRawData_FEDRawData_h
2 #define FEDRawData_FEDRawData_h
3 
16 #include <vector>
17 #include <cstddef>
18 
19 class FEDRawData {
20 public:
21  typedef std::vector<unsigned char> Data;
22  typedef Data::iterator iterator;
23 
25  FEDRawData();
26 
30  FEDRawData(size_t newsize);
31 
33  FEDRawData(const FEDRawData &);
34 
36  ~FEDRawData();
37 
39  const unsigned char *data() const;
40 
42  unsigned char *data();
43 
45  size_t size() const { return data_.size(); }
46 
49  void resize(size_t newsize);
50 
51 private:
53 };
54 
55 #endif
size_t size() const
Lenght of the data buffer in bytes.
Definition: FEDRawData.h:45
FEDRawData()
Default ctor.
Definition: FEDRawData.cc:14
void resize(size_t newsize)
Definition: FEDRawData.cc:28
std::vector< unsigned char > Data
Definition: FEDRawData.h:21
Data data_
Definition: FEDRawData.h:52
const unsigned char * data() const
Return a const pointer to the beginning of the data buffer.
Definition: FEDRawData.cc:24
~FEDRawData()
Dtor.
Definition: FEDRawData.cc:23
Data::iterator iterator
Definition: FEDRawData.h:22