CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_10/src/EventFilter/ResourceBroker/src/RawMsgBuf.cc

Go to the documentation of this file.
00001 #include "EventFilter/ResourceBroker/interface/RawMsgBuf.h"
00002 #include <iostream>
00003 #include <cstdlib>
00004 
00005 using namespace evf;
00006 
00007 // create a raw message with the maximum message size
00008 RawMsgBuf::RawMsgBuf(unsigned int size, unsigned int type) :
00009         MsgBuf(size, type), theRawCell_(0) {
00010 
00011 }
00012 
00013 RawMsgBuf::~RawMsgBuf() {
00014         theRawCell_->~FUShmRawCell();
00015         //delete[] buf_;
00016 }
00017 
00018 void RawMsgBuf::initialise(unsigned int rawCellSize) {
00019         // construct the FUShmRawCell at the buffer address
00020         // the memory is allocated in the super constructor
00021         theRawCell_ = new (ptr_->mtext) FUShmRawCell(rawCellSize);
00022 
00023 }