mirror of
https://github.com/paulscherrerinstitute/sf_daq_buffer.git
synced 2026-05-01 10:22:22 +02:00
Add folder creation to writer
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
#include <RingBuffer.hpp>
|
||||
#include <UdpRecvModule.hpp>
|
||||
#include <H5Writer.hpp>
|
||||
#include <WriterUtils.hpp>
|
||||
|
||||
#include "config.hpp"
|
||||
#include "jungfrau.hpp"
|
||||
@@ -54,6 +55,9 @@ int main (int argc, char *argv[]) {
|
||||
|
||||
if (current_file != frame_file) {
|
||||
writer.close_file();
|
||||
|
||||
WriterUtils::create_destination_folder(frame_file);
|
||||
|
||||
writer.create_file(frame_file);
|
||||
current_file = frame_file;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user