CGEM BOSS 6.6.5.g
BESIII Offline Software System
Loading...
Searching...
No Matches
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 nBuf() const
Definition: BufferHolder.h:15
uint32_t * operator()(int ibuf) const
Definition: BufferHolder.cxx:9
uint32_t bufSize(int i) const
Definition: BufferHolder.h:16
virtual ~BufferHolder()
Definition: BufferHolder.h:11