mirror of
https://github.com/paulscherrerinstitute/sf_daq_buffer.git
synced 2026-05-01 07:22:22 +02:00
Rename stream to header and add guards
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
#ifndef MOCK_STREAM_H
|
||||
#define MOCK_STREAM_H
|
||||
|
||||
#include <zmq.hpp>
|
||||
|
||||
void generate_stream(size_t n_messages)
|
||||
@@ -17,4 +20,6 @@ void generate_stream(size_t n_messages)
|
||||
socket.send(header_msg, zmq::send_flags::sndmore);
|
||||
socket.send(buffer_msg);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
@@ -5,7 +5,7 @@
|
||||
#include <string>
|
||||
#include "RingBuffer.hpp"
|
||||
|
||||
#include "mock/stream.cpp"
|
||||
#include "mock/stream.hpp"
|
||||
|
||||
using namespace std;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user