Belle II Software development
|
Storage item for the event backup storing the event message, the time stamp and the event meta data. More...
#include <ProcessedEventBackup.h>
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 EventMetaData & | getEventMetaData () const |
Getter for the stored event meta data. | |
const TimeStamp & | getTimestamp () 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< EvtMessage > | m_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. | |
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.
|
private |
Short for the class of the time stamp (it is a system clock time stamp)
Definition at line 24 of file ProcessedEventBackup.h.
ProcessedEventBackup | ( | std::unique_ptr< EvtMessage > | evtMsg, |
const EventMetaData & | evtMetaData, | ||
unsigned int | workerId | ||
) |
Constructor setting the informations. Takes ownership of the evtMsg.
Definition at line 12 of file ProcessedEventBackup.cc.
const EventMetaData & getEventMetaData | ( | ) | const |
Getter for the stored event meta data.
Definition at line 19 of file ProcessedEventBackup.cc.
const ProcessedEventBackup::TimeStamp & getTimestamp | ( | ) | const |
Getter for the stored time stamp.
Definition at line 24 of file ProcessedEventBackup.cc.
const unsigned int & getWorkerId | ( | ) | const |
Getter for the stored worker id.
Definition at line 29 of file ProcessedEventBackup.cc.
bool operator== | ( | const EventMetaData & | rhs | ) |
Compare operator needed in the backup list.
Definition at line 34 of file ProcessedEventBackup.cc.
|
private |
Stored event message.
Definition at line 46 of file ProcessedEventBackup.h.
|
private |
Getter for the stored event meta data.
Definition at line 48 of file ProcessedEventBackup.h.
|
private |
Getter for the stored time stamp.
Definition at line 52 of file ProcessedEventBackup.h.
|
private |
Getter for the stored worker id.
Definition at line 50 of file ProcessedEventBackup.h.