mirror of
https://github.com/paulscherrerinstitute/sf_daq_buffer.git
synced 2026-08-09 07:40:28 +02:00
First implementation of receiver module
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
#ifndef ZMQRECVMODULE_H
|
||||
#define ZMQRECVMODULE_H
|
||||
|
||||
#include "ZmqReceiver.hpp"
|
||||
#include "RingBuffer.hpp"
|
||||
|
||||
class ZmqRecvModule
|
||||
{
|
||||
typedef std::unordered_map<std::string, HeaderDataType> header_map;
|
||||
|
||||
RingBuffer& ring_buffer_;
|
||||
const header_map& header_values_;
|
||||
const std::atomic_bool& is_writing_;
|
||||
|
||||
protected:
|
||||
void receive_thread(
|
||||
const std::string& connect_address,
|
||||
const uint8_t n_receiving_threads);
|
||||
|
||||
public:
|
||||
ZmqRecvModule(
|
||||
RingBuffer& ring_buffer,
|
||||
const header_map& header_values,
|
||||
const std::atomic_bool& is_writing);
|
||||
|
||||
void start(
|
||||
const std::string& connect_address,
|
||||
const uint8_t n_receiving_thread);
|
||||
|
||||
void stop();
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user