BOSS 7.0.2
BESIII Offline Software System
Loading...
Searching...
No Matches
Event/RawDataCnv/RawDataCnv-00-04-35/RawDataCnv/Util/BufferHolder.h
Go to the documentation of this file.
1#ifndef RAWDATA_BUFFER_HOLDER_H
2#define RAWDATA_BUFFER_HOLDER_H
3
4#include <stdint.h>
5#include <vector>
6
8{
9public:
10 BufferHolder() : m_nbuf(0) {}
11 virtual ~BufferHolder() {};
12
13 void reset();
14
15 uint32_t nBuf() const { return m_nbuf; }
16 uint32_t bufSize(int i) const { return m_bufSize[i]; }
17 uint32_t* operator()(int ibuf) const;
18
19 void addBuffer(uint32_t* buffer, uint32_t size);
20
21private:
22 std::vector<uint32_t*> m_buffer;
23 std::vector<uint32_t> m_bufSize;
24 uint32_t m_nbuf;
25};
26
27#endif
void addBuffer(uint32_t *buffer, uint32_t size)
uint32_t * operator()(int ibuf) const
Definition: BufferHolder.cxx:9