11#include <RtypesCore.h>
25 enum ERecordType { MSG_EVENT, MSG_BEGIN_RUN, MSG_END_RUN, MSG_TERMINATE, MSG_NORECORD, MSG_STREAMERINFO };
35 UInt_t
src{(UInt_t) - 1};
123 struct timeval
time() const;
Class to manage streamed object.
int dest() const
Get destination IP of message.
int msg_size() const
Get size of message body.
int paddedSize() const
Same as size(), but as size of an integer array.
unsigned int getVersion() const
get version of the header.
ERecordType type() const
Get record type.
int src() const
Get source IP of message.
struct timeval time() const
Get time stamp.
bool hasMsgFlags(unsigned int flags) const
Check if the message has the given flags.
unsigned int getMsgFlags() const
Get flags of the message.
char * m_data
Pointer to the internal EvtMessage buffer.
EvtHeader * header()
Get pointer to EvtHeader.
char * buffer()
Get buffer address.
void setMsgFlags(unsigned int flags)
Set flags for the message.
static const unsigned int c_MaxEventSize
maximal EvtMessage size, in bytes (200MB).
void setMsg(const char *msg, int size, ERecordType type)
Copy message into newly allocated buffer.
char * msg()
Get pointer to message body.
void addMsgFlags(unsigned int flags)
Add flags to the message.
bool m_ownsBuffer
Wether to clean up m_data in destructor.
void setTime(const struct timeval &time)
Set time stamp.
const EvtHeader * getHeader() const
Get pointer to EvtHeader.
EMessageFlags
Flags for the message.
@ c_MsgCompressed
indicates that the message body is compressed and should be uncompressed using ROOT R__unzip_header a...
EvtMessage & operator=(const EvtMessage &obj)
Assignment (m_data is copied).
int size() const
Get size of message including headers.
ERecordType
What type of message is this?
Abstract base class for different kinds of events.