mirror of
https://github.com/paulscherrerinstitute/sf_daq_buffer.git
synced 2026-05-01 01:52:24 +02:00
Add write implementation
This commit is contained in:
@@ -9,8 +9,8 @@ class BinaryWriter {
|
||||
const std::string device_name_;
|
||||
const std::string root_folder_;
|
||||
|
||||
std::string current_filename_;
|
||||
int output_fd_;
|
||||
std::string current_output_filename_;
|
||||
int output_file_fd_;
|
||||
std::string latest_filename_;
|
||||
|
||||
public:
|
||||
@@ -18,8 +18,9 @@ public:
|
||||
const std::string& device_name,
|
||||
const std::string& root_folder);
|
||||
|
||||
void write(uint64_t pulse_id, const JFFileFormat& buffer);
|
||||
void write(const uint64_t pulse_id, const JFFileFormat* buffer);
|
||||
|
||||
void open_file(const std::string& filename);
|
||||
void close_current_file();
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user