#include <Messages.h>
Classes | |
struct | EventMsgHeader |
Public Member Functions | |
void * | data () const |
int | dataSize () const |
EventMsg (void *buffer, int size=0) | |
EventMsg (MsgCode &mc) | |
EventMsg (void *buffer, int size, edm::EventNumber_t e, edm::RunNumber_t r, int which_seg, int total_segs) | |
int | getDataSize () const |
edm::EventNumber_t | getEventNumber () const |
edm::RunNumber_t | getRunNumber () const |
int | getTotalSegs () const |
int | getWhichSeg () const |
int | msgSize () const |
void | setDataSize (int s) |
void | setEventNumber (edm::EventNumber_t e) |
void | setRunNumber (edm::RunNumber_t r) |
void | setTotalSegs (int s) |
void | setWhichSeg (int s) |
Private Attributes | |
int | data_size_ |
edm::EventNumber_t | event_num_ |
EventMsgHeader * | head_ |
edm::RunNumber_t | run_num_ |
int | total_segs_ |
int | which_seg_ |
Definition at line 121 of file Messages.h.
edm::EventMsg::EventMsg | ( | MsgCode & | mc | ) | [inline] |
Definition at line 134 of file Messages.h.
: MsgCode(mc), head_((EventMsgHeader*)MsgCode::payload()), which_seg_(getWhichSeg()), total_segs_(getTotalSegs()), event_num_(getEventNumber()), run_num_(getRunNumber()), data_size_(getDataSize()) { }
edm::EventMsg::EventMsg | ( | void * | buffer, |
int | size = 0 |
||
) | [inline, explicit] |
Definition at line 145 of file Messages.h.
: MsgCode(buffer,size), head_((EventMsgHeader*)MsgCode::payload()), which_seg_(getWhichSeg()), total_segs_(getTotalSegs()), event_num_(getEventNumber()), run_num_(getRunNumber()), data_size_(getDataSize()) { }
edm::EventMsg::EventMsg | ( | void * | buffer, |
int | size, | ||
edm::EventNumber_t | e, | ||
edm::RunNumber_t | r, | ||
int | which_seg, | ||
int | total_segs | ||
) | [inline] |
Definition at line 156 of file Messages.h.
References data_size_, edm::MsgCode::EVENT, edm::MsgCode::setCode(), setDataSize(), setEventNumber(), setRunNumber(), setTotalSegs(), and setWhichSeg().
: MsgCode(buffer,size), head_((EventMsgHeader*)MsgCode::payload()), which_seg_(which_seg), total_segs_(total_segs), event_num_(e), run_num_(r), data_size_(payloadSize() - sizeof(EventMsgHeader)) { setCode(MsgCode::EVENT); setWhichSeg(which_seg); setTotalSegs(total_segs); setEventNumber(e); setRunNumber(r); setDataSize(data_size_); }
void* edm::EventMsg::data | ( | ) | const [inline] |
Definition at line 178 of file Messages.h.
References edm::MsgCode::payload().
{ return (char*)payload() + sizeof(EventMsgHeader); }
int edm::EventMsg::dataSize | ( | ) | const [inline] |
Definition at line 180 of file Messages.h.
References data_size_.
{ return data_size_ + sizeof(EventMsgHeader); }
int edm::EventMsg::getDataSize | ( | ) | const [inline] |
Definition at line 182 of file Messages.h.
References edm::EventMsg::EventMsgHeader::data_size_, edm::decodeInt(), and head_.
Referenced by msgSize().
{ return decodeInt(head_->data_size_); }
edm::EventNumber_t edm::EventMsg::getEventNumber | ( | ) | const [inline] |
Definition at line 212 of file Messages.h.
References edm::decodeInt(), edm::EventMsg::EventMsgHeader::event_num_, and head_.
{ assert(sizeof(edm::EventNumber_t) == sizeof(int) && "event ID streaming only knows how to work with 4 byte event ID numbers right now"); return decodeInt(head_->event_num_); }
edm::RunNumber_t edm::EventMsg::getRunNumber | ( | ) | const [inline] |
Definition at line 224 of file Messages.h.
References edm::decodeInt(), head_, and edm::EventMsg::EventMsgHeader::run_num_.
{ assert(sizeof(edm::EventNumber_t) == sizeof(int) && "event ID streaming only knows how to work with 4 byte event ID numbers right now"); return decodeInt(head_->run_num_); }
int edm::EventMsg::getTotalSegs | ( | ) | const [inline] |
Definition at line 202 of file Messages.h.
References edm::decodeInt(), head_, and edm::EventMsg::EventMsgHeader::total_segs_.
{ return decodeInt(head_->total_segs_); }
int edm::EventMsg::getWhichSeg | ( | ) | const [inline] |
Definition at line 192 of file Messages.h.
References edm::decodeInt(), head_, and edm::EventMsg::EventMsgHeader::which_seg_.
{ return decodeInt(head_->which_seg_); }
int edm::EventMsg::msgSize | ( | ) | const [inline] |
Definition at line 237 of file Messages.h.
References edm::MsgCode::codeSize(), and getDataSize().
{ return codeSize()+sizeof(EventMsgHeader)+getDataSize(); }
void edm::EventMsg::setDataSize | ( | int | s | ) | [inline] |
Definition at line 187 of file Messages.h.
References edm::EventMsg::EventMsgHeader::data_size_, edm::encodeInt(), and head_.
Referenced by EventMsg().
{ encodeInt(s,head_->data_size_); }
void edm::EventMsg::setEventNumber | ( | edm::EventNumber_t | e | ) | [inline] |
Definition at line 218 of file Messages.h.
References edm::encodeInt(), edm::EventMsg::EventMsgHeader::event_num_, and head_.
Referenced by EventMsg().
{ assert(sizeof(edm::RunNumber_t) == sizeof(int) && "run number streaming only knows how to work with 4 byte event ID numbers right now"); encodeInt(e,head_->event_num_); }
void edm::EventMsg::setRunNumber | ( | edm::RunNumber_t | r | ) | [inline] |
Definition at line 230 of file Messages.h.
References edm::encodeInt(), head_, and edm::EventMsg::EventMsgHeader::run_num_.
Referenced by EventMsg().
{ assert(sizeof(edm::RunNumber_t) == sizeof(int) && "run number streaming only knows how to work with 4 byte event ID numbers right now"); return encodeInt(r,head_->run_num_); }
void edm::EventMsg::setTotalSegs | ( | int | s | ) | [inline] |
Definition at line 207 of file Messages.h.
References edm::encodeInt(), head_, and edm::EventMsg::EventMsgHeader::total_segs_.
Referenced by EventMsg().
{ encodeInt(s,head_->total_segs_); }
void edm::EventMsg::setWhichSeg | ( | int | s | ) | [inline] |
Definition at line 197 of file Messages.h.
References edm::encodeInt(), head_, and edm::EventMsg::EventMsgHeader::which_seg_.
Referenced by EventMsg().
{ encodeInt(s,head_->which_seg_); }
int edm::EventMsg::data_size_ [private] |
Definition at line 248 of file Messages.h.
Referenced by dataSize(), and EventMsg().
edm::EventNumber_t edm::EventMsg::event_num_ [private] |
Definition at line 246 of file Messages.h.
EventMsgHeader* edm::EventMsg::head_ [private] |
Definition at line 243 of file Messages.h.
Referenced by getDataSize(), getEventNumber(), getRunNumber(), getTotalSegs(), getWhichSeg(), setDataSize(), setEventNumber(), setRunNumber(), setTotalSegs(), and setWhichSeg().
edm::RunNumber_t edm::EventMsg::run_num_ [private] |
Definition at line 247 of file Messages.h.
int edm::EventMsg::total_segs_ [private] |
Definition at line 245 of file Messages.h.
int edm::EventMsg::which_seg_ [private] |
Definition at line 244 of file Messages.h.