mirror of
https://github.com/paulscherrerinstitute/sf_daq_buffer.git
synced 2026-05-11 12:15:35 +02:00
WriterManager operates on references
This commit is contained in:
@@ -16,7 +16,7 @@ class WriterManager
|
||||
std::mutex parameters_mutex;
|
||||
|
||||
// Initialize in constructor.
|
||||
const std::map<std::string, DATA_TYPE>* parameters_type;
|
||||
const std::map<std::string, DATA_TYPE>& parameters_type;
|
||||
size_t n_frames;
|
||||
std::atomic_bool running_flag;
|
||||
std::atomic_bool killed_flag;
|
||||
@@ -25,7 +25,7 @@ class WriterManager
|
||||
std::atomic<uint64_t> n_lost_frames;
|
||||
|
||||
public:
|
||||
WriterManager(const std::map<std::string, DATA_TYPE>* parameters_type, uint64_t n_frames=0);
|
||||
WriterManager(const std::map<std::string, DATA_TYPE>& parameters_type, uint64_t n_frames=0);
|
||||
void stop();
|
||||
void kill();
|
||||
bool is_running();
|
||||
@@ -33,7 +33,7 @@ class WriterManager
|
||||
std::string get_status();
|
||||
bool are_all_parameters_set();
|
||||
|
||||
const std::map<std::string, DATA_TYPE>* get_parameters_type();
|
||||
const std::map<std::string, DATA_TYPE>& get_parameters_type();
|
||||
std::map<std::string, boost::any> get_parameters();
|
||||
void set_parameters(const std::map<std::string, boost::any>& new_parameters);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user