mirror of
https://github.com/paulscherrerinstitute/sf_daq_buffer.git
synced 2026-04-28 19:02:23 +02:00
25 lines
516 B
C++
25 lines
516 B
C++
#ifndef SF_DAQ_BUFFER_RAMBUFFERWRITER_HPP
|
|
#define SF_DAQ_BUFFER_RAMBUFFERWRITER_HPP
|
|
|
|
#include <string>
|
|
|
|
class RamBufferWriter {
|
|
const int module_n_;
|
|
const std::string detector_name_;
|
|
|
|
int shm_fd_;
|
|
size_t buffer_size_;
|
|
void* buffer_;
|
|
|
|
public:
|
|
RamBufferWriter(const std::string& detector_name,
|
|
const int module_n,
|
|
const size_t n_modules,
|
|
const size_t n_slots);
|
|
~RamBufferWriter();
|
|
|
|
};
|
|
|
|
|
|
#endif //SF_DAQ_BUFFER_RAMBUFFERWRITER_HPP
|