mirror of
https://github.com/paulscherrerinstitute/sf_daq_buffer.git
synced 2026-04-21 13:24:35 +02:00
24 lines
422 B
C++
24 lines
422 B
C++
#ifndef BINARYWRITER_HPP
|
|
#define BINARYWRITER_HPP
|
|
|
|
#include <string>
|
|
#include "JFFileFormat.hpp"
|
|
|
|
class BinaryWriter {
|
|
|
|
const std::string device_name_;
|
|
const std::string root_folder_;
|
|
|
|
public:
|
|
BinaryWriter(
|
|
const std::string& device_name,
|
|
const std::string& root_folder);
|
|
|
|
void write(uint64_t pulse_id, const JFFileFormat& buffer);
|
|
|
|
void close();
|
|
};
|
|
|
|
|
|
#endif //BINARYWRITER_HPP
|