11#include <framework/core/Module.h>
12#include <framework/pcore/RingBuffer.h>
13#include <framework/datastore/StoreObjPtr.h>
14#include <framework/core/RandomGenerator.h>
22 class DataStoreStreamer;
39 virtual void event()
override;
40 virtual void endRun()
override;
Stream/restore DataStore objects to/from EvtMessage.
Class to manage a Ring Buffer placed in an IPC shared memory.
Module to decode data store contents from RingBuffer.
DataStoreStreamer * m_streamer
Used for serialization.
virtual void initialize() override
Module functions to be called from main process.
void initStreamer()
initialize m_streamer.
virtual void event() override
This method is the core of the module.
virtual void endRun() override
This method is called if the current run ends.
virtual void terminate() override
This method is called at the end of the event processing.
RingBuffer * m_rbuf
attached RingBuffer.
virtual void beginRun() override
Called when entering a new run.
int m_nrecv
Current event number.
void readEvent()
Gets data from m_rbuf and puts it into the data store.
StoreObjPtr< RandomGenerator > m_randomgenerator
Random Generator object to receive from TxModule.
bool m_handleMergeable
Whether to handle Mergeable objects.
int m_compressionLevel
Compression Level.
void disableMergeableHandling(bool disable=true)
Disable handling of Mergeable objects.
Type-safe access to single objects in the data store.
Abstract base class for different kinds of events.