mirror of
https://github.com/paulscherrerinstitute/sf_daq_buffer.git
synced 2026-05-01 13:22:24 +02:00
Fix initialization order
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
#ifndef WRITERMANAGER_H
|
||||
#define WRITERMANAGER_H
|
||||
|
||||
#include <map>
|
||||
#include <string>
|
||||
#include <atomic>
|
||||
|
||||
class WriterManager
|
||||
{
|
||||
std::map<std::string, std::string> parameters = {};
|
||||
|
||||
// Initialize in constructor.
|
||||
size_t n_images;
|
||||
std::atomic_bool running_flag;
|
||||
std::atomic_int n_received_frames;
|
||||
std::atomic_int n_written_frames;
|
||||
|
||||
public:
|
||||
WriterManager(uint64_t n_images=0);
|
||||
void stop();
|
||||
std::string get_status();
|
||||
std::map<std::string, uint64_t> get_statistics();
|
||||
std::map<std::string, std::string> get_paramters();
|
||||
void set_parameters(std::map<std::string, std::string> &new_parameters);
|
||||
std::map<std::string, std::string>& get_parameters();
|
||||
bool is_running();
|
||||
void received_frame(size_t frame_index);
|
||||
void written_frame(size_t frame_index);
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user