stream  0.10.0
stream analysis framework
MonitorSubEvent.h
1 #ifndef HADAQ_MONITORSUBEVENT_H
2 #define HADAQ_MONITORSUBEVENT_H
3 
4 #include "base/SubEvent.h"
5 
6 #include <vector>
7 
8 namespace hadaq {
9 
16  struct MessageMonitor {
17  uint32_t addr0;
18  uint32_t addr;
19  uint32_t value;
20 
22  MessageMonitor(uint32_t _addr0 = 0, uint32_t _addr = 0, uint32_t _value = 0)
23  {
24  addr0 = _addr0;
25  addr = _addr;
26  value = _value;
27  }
28 
30  bool operator<(const MessageMonitor &rhs) const
31  { return (addr0 < rhs.addr0); }
32 
33  };
34 
36  typedef base::SubEventEx<hadaq::MessageMonitor> MonitorSubEvent;
37 }
38 
39 #endif
Subevent with vector of extended messages.
Definition: base/SubEvent.h:91
Monitor message.
Definition: MonitorSubEvent.h:16
bool operator<(const MessageMonitor &rhs) const
compare address for sorting
Definition: MonitorSubEvent.h:30
uint32_t value
value
Definition: MonitorSubEvent.h:19
uint32_t addr0
first addr
Definition: MonitorSubEvent.h:17
uint32_t addr
second addr
Definition: MonitorSubEvent.h:18
MessageMonitor(uint32_t _addr0=0, uint32_t _addr=0, uint32_t _value=0)
constructor
Definition: MonitorSubEvent.h:22