mirror of
https://github.com/paulscherrerinstitute/sf_daq_buffer.git
synced 2026-11-09 16:04:02 +01:00
Add close and init to binary writer
This commit is contained in:
1 parent
1e04775a91
commit
d06b710b22
2 files changed
+32
-5
No files matched your search
@@ -9,6 +9,9 @@ class BinaryWriter {
|
||||
const std::string device_name_;
|
||||
const std::string root_folder_;
|
||||
|
||||
std::string current_filename_;
|
||||
int output_fd_;
|
||||
|
||||
public:
|
||||
BinaryWriter(
|
||||
const std::string& device_name,
|
||||
@@ -16,7 +19,7 @@ public:
|
||||
|
||||
void write(uint64_t pulse_id, const JFFileFormat& buffer);
|
||||
|
||||
void close();
|
||||
void close_current_file();
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user