mirror of
https://github.com/paulscherrerinstitute/sf_daq_buffer.git
synced 2026-06-09 14:38:39 +02:00
Change writer to JSON consuming
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#include <cstddef>
|
||||
#include <formats.hpp>
|
||||
#include <chrono>
|
||||
#include "broker_format.hpp"
|
||||
#include "store_format.hpp"
|
||||
|
||||
#ifndef SF_DAQ_BUFFER_FRAMESTATS_HPP
|
||||
#define SF_DAQ_BUFFER_FRAMESTATS_HPP
|
||||
@@ -23,8 +23,8 @@ class WriterStats {
|
||||
void print_stats();
|
||||
|
||||
public:
|
||||
explicit WriterStats(std::string detector_name);
|
||||
void start_run(const StoreStream& meta);
|
||||
explicit WriterStats(std::string detector_name,
|
||||
const uint64_t image_n_bytes);
|
||||
void end_run();
|
||||
void start_image_write();
|
||||
void end_image_write();
|
||||
|
||||
@@ -1,17 +0,0 @@
|
||||
#ifndef SF_DAQ_BUFFER_BROKER_FORMAT_HPP
|
||||
#define SF_DAQ_BUFFER_BROKER_FORMAT_HPP
|
||||
|
||||
#include "formats.hpp"
|
||||
|
||||
|
||||
#pragma pack(push)
|
||||
#pragma pack(1)
|
||||
struct StoreStream {
|
||||
std::string output_file;
|
||||
int64_t run_id;
|
||||
uint64_t image_id;
|
||||
uint32_t i_image;
|
||||
uint32_t n_images;
|
||||
};
|
||||
#pragma pack(pop)
|
||||
#endif //SF_DAQ_BUFFER_BROKER_FORMAT_HPP
|
||||
Reference in New Issue
Block a user