 |
Belle II Software
release-05-02-19
|
12 #include <framework/core/Module.h>
13 #include <framework/datastore/StoreObjPtr.h>
14 #include <framework/dataobjects/EventMetaData.h>
15 #include <framework/core/RandomGenerator.h>
16 #include <framework/pcore/zmq/sockets/ZMQClient.h>
17 #include <framework/pcore/zmq/utils/StreamHelper.h>
29 class ZMQRxOutputModule :
public Module {
34 void event()
override;
ZMQRxOutputModule()
Constructor setting the moudle paramters.
int m_param_compressionLevel
Parameter: Compression level of the streamer.
std::string m_param_xpubProxySocketName
Parameter: name of the pub multicast socket.
std::string m_param_xsubProxySocketName
Parameter: name of the sub multicast socket.
StoreObjPtr< EventMetaData > m_eventMetaData
The event meta data in the data store needed for confirming events.
Helper class for data store serialization.
Abstract base class for different kinds of events.
Type-safe access to single objects in the data store.
void initialize() override
Initialize the streamer.
ZMQClient m_zmqClient
Our ZMQ client.
bool m_firstEvent
Set to false if the objects are initialized.
void terminate() override
Terminate the client and tell the monitor, we are done.
void event() override
Receive an event and store it in the datastore. Confirm to the input process.
StoreObjPtr< RandomGenerator > m_randomgenerator
The random generator in the data store.
unsigned int m_param_maximalWaitingTime
Maximal time to wait until aborting in ms.
StreamHelper m_streamer
The data store streamer.
bool m_param_handleMergeable
Parameter: Can we handle mergeables?
A helper class for communicating over ZMQ. Includes a multicast and (if needed) also a data socket.
std::string m_param_socketName
Parameter: name of the data socket.