CMS 3D CMS Logo

EventIndexRecord Class Reference

Struct represents a Event filed in Streamer file. More...

#include <IOPool/Streamer/interface/IndexRecords.h>

List of all members.

Public Member Functions

 EventIndexRecord ()
const EventMsgViewgetEventView () const
const uint64 getOffset () const
void makeEvent (void *buf)
void makeOffset (void *buf)
 ~EventIndexRecord ()

Private Attributes

EventMsgVieweview
uint64offset


Detailed Description

Struct represents a Event filed in Streamer file.

EventHeader + offset(64Bit)

Definition at line 61 of file IndexRecords.h.


Constructor & Destructor Documentation

EventIndexRecord::EventIndexRecord (  )  [inline]

Definition at line 64 of file IndexRecords.h.

00064 {}

EventIndexRecord::~EventIndexRecord (  )  [inline]

Definition at line 65 of file IndexRecords.h.

References eview, NULL, and offset.

00065                       {
00066       if (eview !=NULL) delete eview;
00067       if (offset != NULL) delete offset;
00068    }


Member Function Documentation

const EventMsgView* EventIndexRecord::getEventView (  )  const [inline]

Definition at line 79 of file IndexRecords.h.

References eview.

Referenced by header_event_sorter(), and header_run_sorter().

00079 {return eview;}

const uint64 EventIndexRecord::getOffset (  )  const [inline]

Definition at line 78 of file IndexRecords.h.

References offset.

Referenced by StreamerInputFile::next().

00078 { return *offset; }

void EventIndexRecord::makeEvent ( void buf  )  [inline]

Definition at line 70 of file IndexRecords.h.

References eview.

Referenced by StreamerInputIndexFile::readEventMessage().

00070                              {  //never call makeEvent twice
00071         eview = new EventMsgView(buf);
00072    }

void EventIndexRecord::makeOffset ( void buf  )  [inline]

Definition at line 74 of file IndexRecords.h.

References convert64(), and offset.

Referenced by StreamerInputIndexFile::readEventMessage().

00074                               {  //never call makeOffset twice
00075         offset = (uint64*) new long long (convert64((unsigned char*) buf));
00076    }


Member Data Documentation

EventMsgView* EventIndexRecord::eview [private]

Definition at line 82 of file IndexRecords.h.

Referenced by getEventView(), makeEvent(), and ~EventIndexRecord().

uint64* EventIndexRecord::offset [private]

Definition at line 83 of file IndexRecords.h.

Referenced by getOffset(), makeOffset(), and ~EventIndexRecord().


The documentation for this class was generated from the following file:
Generated on Tue Jun 9 18:20:26 2009 for CMSSW by  doxygen 1.5.4