CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_3/src/EventFilter/Utilities/interface/MsgBuf.h

Go to the documentation of this file.
00001 #ifndef EVENTFILTER_UTILITIES_MSG_BUF_H
00002 #define EVENTFILTER_UTILITIES_MSG_BUF_H
00003 
00004 #include "EventFilter/Utilities/interface/queue_defs.h"
00005 #include <string.h>
00006 
00007 namespace evf {
00008 
00009 class MsgBuf {
00010 
00011 public:
00012         MsgBuf();
00013         MsgBuf(unsigned int size, unsigned int type);
00014         MsgBuf(const MsgBuf &b);
00015 
00016         MsgBuf &operator=(const MsgBuf &);
00017         size_t msize();
00018         virtual ~MsgBuf();
00019         msgbuf* operator->();
00020 
00021 protected:
00022         size_t msize_;
00023         unsigned char *buf_;
00024         struct msgbuf *ptr_;
00025         friend class MasterQueue;
00026         friend class SlaveQueue;
00027 };
00028 
00029 }
00030 
00031 #endif