CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_6_1_2_SLHC2_patch1/src/EventFilter/ResourceBroker/src/DQMMsgBuf.cc

Go to the documentation of this file.
00001 /*
00002  * Message Buffer for Message Queue
00003  *  - holds an entire FUShmDqmCell to transport
00004  *
00005  *  Author: aspataru : aspataru@cern.ch
00006  */
00007 
00008 #include "EventFilter/ResourceBroker/interface/DQMMsgBuf.h"
00009 #include <iostream>
00010 #include <cstdlib>
00011 
00012 using namespace evf;
00013 
00014 DQMMsgBuf::DQMMsgBuf(unsigned int size, unsigned int type) :
00015         MsgBuf(size, type), theDqmCell_(0) {
00016 }
00017 
00018 DQMMsgBuf::~DQMMsgBuf() {
00019         theDqmCell_->~FUShmDqmCell();
00020         //delete[] buf_;
00021 }
00022 
00023 void DQMMsgBuf::initialise(unsigned int dqmCellSize) {
00024         // construct the FUShmDqmCell at the buffer address
00025         // the memory is allocated in the super constructor
00026         theDqmCell_ = new (ptr_->mtext) FUShmDqmCell(dqmCellSize);
00027 }