CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_1/src/EventFilter/ResourceBroker/interface/DQMMsgBuf.h

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 #ifndef EVENTFILTER_RB_DQM_MSG_BUF_H
00009 #define EVENTFILTER_RB_DQM_MSG_BUF_H
00010 
00011 #include "EventFilter/Utilities/interface/MsgBuf.h"
00012 #include "EventFilter/ShmBuffer/interface/FUShmDqmCell.h"
00013 
00014 namespace evf {
00015 
00023 class DQMMsgBuf: public MsgBuf {
00024 
00025 public:
00026         DQMMsgBuf(unsigned int size, unsigned int type);
00027         virtual ~DQMMsgBuf();
00028 
00032         void initialise(unsigned int dqmCellSize);
00033 
00037         FUShmDqmCell* dqmCell() {
00038                 return (FUShmDqmCell*) ptr_->mtext;
00039         }
00040 
00041 private:
00042         FUShmDqmCell* theDqmCell_;
00043         friend class MasterQueue;
00044 };
00045 
00046 }
00047 
00048 #endif