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 //@EM ToDo move implementation to .cc file 00008 00009 namespace evf{ 00010 class MsgBuf{ 00011 public: 00012 MsgBuf(); 00013 MsgBuf(unsigned int size, unsigned int type); 00014 MsgBuf(const MsgBuf &b); 00015 MsgBuf &operator=(const MsgBuf &); 00016 size_t msize(); 00017 virtual ~MsgBuf(); 00018 msgbuf* operator->(); 00019 private: 00020 size_t msize_; 00021 unsigned char *buf_; 00022 struct msgbuf *ptr_; 00023 friend class MasterQueue; 00024 friend class SlaveQueue; 00025 }; 00026 } 00027 #endif