mirror of
https://github.com/paulscherrerinstitute/sf_daq_buffer.git
synced 2026-04-30 23:02:23 +02:00
30 lines
565 B
C++
30 lines
565 B
C++
#ifndef SF_DAQ_BUFFER_ZMQPULSERECEIVER_HPP
|
|
#define SF_DAQ_BUFFER_ZMQPULSERECEIVER_HPP
|
|
|
|
|
|
#include <cstddef>
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
#include "formats.hpp"
|
|
|
|
class ZmqPulseReceiver {
|
|
|
|
const std::vector<std::string> ipc_urls_;
|
|
const int n_modules_;
|
|
void* ctx_;
|
|
|
|
std::vector<void*> sockets_;
|
|
|
|
void* connect_socket(const std::string url);
|
|
|
|
public:
|
|
ZmqPulseReceiver(const std::vector<std::string>& ipc_urls, void* ctx);
|
|
~ZmqPulseReceiver();
|
|
|
|
uint64_t get_next_pulse_id() const;
|
|
};
|
|
|
|
|
|
#endif //SF_DAQ_BUFFER_ZMQPULSERECEIVER_HPP
|