CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
EventMsg.h
Go to the documentation of this file.
1 // $Id: EventMsg.h,v 1.1.2.5 2011/02/28 18:22:34 mommsen Exp $
3 
4 #ifndef EventFilter_SMProxyServer_EventMsg_h
5 #define EventFilter_SMProxyServer_EventMsg_h
6 
9 
10 #include <boost/shared_ptr.hpp>
11 #include <vector>
12 
13 namespace smproxy {
14 
24  class EventMsg
25  {
26  public:
27 
28  EventMsg();
29  EventMsg(const EventMsgView&);
30 
35 
39  const stor::QueueIDs& getEventConsumerTags() const;
40 
44  size_t memoryUsed() const;
45 
49  unsigned long totalDataSize() const;
50 
54  unsigned char* dataLocation() const;
55 
59  bool empty() const;
60 
64  bool faulty() const;
65 
66 
67  private:
68  typedef std::vector<unsigned char> EventMsgBuffer;
69  boost::shared_ptr<EventMsgBuffer> buf_;
70  bool faulty_;
71 
73  };
74 
75 } // namespace smproxy
76 
77 #endif // EventFilter_SMProxyServer_EventMsg_h
78 
79 
80 
81 // emacs configuration
82 // Local Variables: -
83 // mode: c++ -
84 // c-basic-offset: 2 -
85 // indent-tabs-mode: nil -
86 // End: -
std::vector< QueueID > QueueIDs
Definition: QueueID.h:80
std::vector< unsigned char > EventMsgBuffer
Definition: EventMsg.h:68
size_t memoryUsed() const
Definition: EventMsg.cc:39
const stor::QueueIDs & getEventConsumerTags() const
Definition: EventMsg.cc:33
bool faulty() const
Definition: EventMsg.cc:63
boost::shared_ptr< EventMsgBuffer > buf_
Definition: EventMsg.h:69
stor::QueueIDs queueIDs_
Definition: EventMsg.h:72
void tagForEventConsumers(const stor::QueueIDs &)
Definition: EventMsg.cc:27
unsigned char * dataLocation() const
Definition: EventMsg.cc:51
bool empty() const
Definition: EventMsg.cc:57
unsigned long totalDataSize() const
Definition: EventMsg.cc:45