Belle II Software development
|
Helper class for data store serialization. More...
#include <StreamHelper.h>
Public Member Functions | |
void | initialize (int compressionLevel, bool handleMergeable) |
Initialize this class. Call this e.g. in the first event. | |
std::unique_ptr< EvtMessage > | stream (bool addPersistentDurability=true, bool streamTransientObjects=true) |
Stream the data store into an event message. | |
void | read (std::unique_ptr< ZMQNoIdMessage > message) |
Read in a ZMQ message and rebuilt the data store from it. | |
Private Attributes | |
std::unique_ptr< DataStoreStreamer > | m_streamer |
The data store streamer to use. | |
StoreObjPtr< RandomGenerator > | m_randomGenerator |
The random generator object in the data store that we need to transport also. | |
Helper class for data store serialization.
Definition at line 23 of file StreamHelper.h.
void initialize | ( | int | compressionLevel, |
bool | handleMergeable | ||
) |
Initialize this class. Call this e.g. in the first event.
Definition at line 18 of file StreamHelper.cc.
void read | ( | std::unique_ptr< ZMQNoIdMessage > | message | ) |
Read in a ZMQ message and rebuilt the data store from it.
Definition at line 41 of file StreamHelper.cc.
std::unique_ptr< EvtMessage > stream | ( | bool | addPersistentDurability = true , |
bool | streamTransientObjects = true |
||
) |
Stream the data store into an event message.
Definition at line 29 of file StreamHelper.cc.
|
private |
The random generator object in the data store that we need to transport also.
Definition at line 36 of file StreamHelper.h.
|
private |
The data store streamer to use.
Definition at line 34 of file StreamHelper.h.