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.3 2011/03/08 18:44:55 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  unsigned int droppedEventsCount() const;
45 
49  void setDroppedEventsCount(unsigned int count);
50 
54  size_t memoryUsed() const;
55 
59  unsigned long totalDataSize() const;
60 
64  unsigned char* dataLocation() const;
65 
69  bool empty() const;
70 
74  bool faulty() const;
75 
76 
77  private:
78  typedef std::vector<unsigned char> EventMsgBuffer;
79  boost::shared_ptr<EventMsgBuffer> buf_;
80  bool faulty_;
81  unsigned int droppedEventsCount_;
82 
84  };
85 
86 } // namespace smproxy
87 
88 #endif // EventFilter_SMProxyServer_EventMsg_h
89 
90 
91 
92 // emacs configuration
93 // Local Variables: -
94 // mode: c++ -
95 // c-basic-offset: 2 -
96 // indent-tabs-mode: nil -
97 // End: -
std::vector< QueueID > QueueIDs
Definition: QueueID.h:80
std::vector< unsigned char > EventMsgBuffer
Definition: EventMsg.h:78
size_t memoryUsed() const
Definition: EventMsg.cc:54
const stor::QueueIDs & getEventConsumerTags() const
Definition: EventMsg.cc:35
bool faulty() const
Definition: EventMsg.cc:78
boost::shared_ptr< EventMsgBuffer > buf_
Definition: EventMsg.h:79
stor::QueueIDs queueIDs_
Definition: EventMsg.h:83
unsigned int droppedEventsCount() const
Definition: EventMsg.cc:41
unsigned int droppedEventsCount_
Definition: EventMsg.h:81
void tagForEventConsumers(const stor::QueueIDs &)
Definition: EventMsg.cc:29
unsigned char * dataLocation() const
Definition: EventMsg.cc:66
bool empty() const
Definition: EventMsg.cc:72
unsigned long totalDataSize() const
Definition: EventMsg.cc:60
void setDroppedEventsCount(unsigned int count)
Definition: EventMsg.cc:47