9#include <framework/pcore/DataStoreStreamer.h>
10#include <framework/pcore/zmq/messages/ZMQNoIdMessage.h>
11#include <framework/datastore/StoreObjPtr.h>
12#include <framework/core/RandomGenerator.h>
26 void initialize(
int compressionLevel,
bool handleMergeable);
28 std::unique_ptr<EvtMessage>
stream(
bool addPersistentDurability =
true,
bool streamTransientObjects =
true);
30 void read(std::unique_ptr<ZMQNoIdMessage> message);
Type-safe access to single objects in the data store.
Helper class for data store serialization.
std::unique_ptr< DataStoreStreamer > m_streamer
The data store streamer to use.
void read(std::unique_ptr< ZMQNoIdMessage > message)
Read in a ZMQ message and rebuilt the data store from it.
std::unique_ptr< EvtMessage > stream(bool addPersistentDurability=true, bool streamTransientObjects=true)
Stream the data store into an event message.
void initialize(int compressionLevel, bool handleMergeable)
Initialize this class. Call this e.g. in the first event.
StoreObjPtr< RandomGenerator > m_randomGenerator
The random generator object in the data store that we need to transport also.
Abstract base class for different kinds of events.