mirror of
https://github.com/paulscherrerinstitute/sf_daq_buffer.git
synced 2026-05-19 22:16:48 +02:00
Rename SFWriter to new standard naming
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
#include <RingBuffer.hpp>
|
||||
#include <thread>
|
||||
#include <chrono>
|
||||
#include "SFWriter.hpp"
|
||||
#include "WriterH5Writer.hpp"
|
||||
|
||||
using namespace std;
|
||||
using namespace core_buffer;
|
||||
@@ -33,7 +33,7 @@ int main (int argc, char *argv[])
|
||||
size_t n_modules = 32;
|
||||
|
||||
size_t n_frames = stop_pulse_id - start_pulse_id;
|
||||
SFWriter writer(output_file, n_frames, n_modules);
|
||||
WriterH5Writer writer(output_file, n_frames, n_modules);
|
||||
|
||||
// TODO: Remove stats trash.
|
||||
int i_write = 0;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#include "SFWriter.hpp"
|
||||
#include "WriterH5Writer.hpp"
|
||||
#include "gtest/gtest.h"
|
||||
|
||||
using namespace core_buffer;
|
||||
@@ -11,7 +11,7 @@ TEST(SFWriter, basic_interaction)
|
||||
auto data = make_unique<char[]>(n_modules*MODULE_N_BYTES);
|
||||
auto metadata = make_shared<DetectorFrame>();
|
||||
|
||||
SFWriter writer("ignore.h5", n_frames, n_modules);
|
||||
WriterH5Writer writer("ignore.h5", n_frames, n_modules);
|
||||
writer.write(metadata.get(), data.get());
|
||||
writer.close_file();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user