Belle II Software  release-08-01-10
ProcessedEventBackup Class Reference

Storage item for the event backup storing the event message, the time stamp and the event meta data. More...

#include <ProcessedEventBackup.h>

Collaboration diagram for ProcessedEventBackup:

Public Member Functions

 ProcessedEventBackup (std::unique_ptr< EvtMessage > evtMsg, const EventMetaData &evtMetaData, unsigned int workerId)
 Constructor setting the informations. Takes ownership of the evtMsg.
 
bool operator== (const EventMetaData &rhs)
 Compare operator needed in the backup list.
 
template<class AZMQClient >
void sendToSocket (const AZMQClient &socket)
 Publish this event backup directly to the given client.
 
const EventMetaDatagetEventMetaData () const
 Getter for the stored event meta data.
 
const TimeStampgetTimestamp () const
 Getter for the stored time stamp.
 
const unsigned int & getWorkerId () const
 Getter for the stored worker id.
 

Private Types

using TimeStamp = std::chrono::time_point< std::chrono::system_clock >
 Short for the class of the time stamp (it is a system clock time stamp)
 

Private Attributes

std::unique_ptr< EvtMessagem_eventMessage
 Stored event message.
 
EventMetaData m_eventMetaData
 Getter for the stored event meta data.
 
unsigned int m_workerId
 Getter for the stored worker id.
 
TimeStamp m_timestamp = std::chrono::system_clock::now()
 Getter for the stored time stamp.
 

Detailed Description

Storage item for the event backup storing the event message, the time stamp and the event meta data.

Definition at line 22 of file ProcessedEventBackup.h.


The documentation for this class was generated from the following files: