CMS 3D CMS Logo

Classes | Public Member Functions | Private Attributes

edm::EventMsg Class Reference

#include <Messages.h>

Inheritance diagram for edm::EventMsg:
edm::MsgCode

List of all members.

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_
EventMsgHeaderhead_
edm::RunNumber_t run_num_
int total_segs_
int which_seg_

Detailed Description

Definition at line 121 of file Messages.h.


Constructor & Destructor Documentation

edm::EventMsg::EventMsg ( MsgCode mc) [inline]
edm::EventMsg::EventMsg ( void *  buffer,
int  size = 0 
) [inline, explicit]
edm::EventMsg::EventMsg ( void *  buffer,
int  size,
edm::EventNumber_t  e,
edm::RunNumber_t  r,
int  which_seg,
int  total_segs 
) [inline]

Member Function Documentation

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().

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().

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().


Member Data Documentation

Definition at line 248 of file Messages.h.

Referenced by dataSize(), and EventMsg().

Definition at line 246 of file Messages.h.

Definition at line 247 of file Messages.h.

Definition at line 245 of file Messages.h.

Definition at line 244 of file Messages.h.