1 #ifndef monitor_stream_h
2 #define monitor_stream_h
11 #include "gcp/util/common/Complex.h"
12 #include "gcp/util/common/RegDate.h"
13 #include "gcp/util/common/RegisterSet.h"
14 #include "gcp/util/common/RegCal.h"
28 #define MS_READ_FRAME(fn) \
29 gcp::control::MsReadState (fn)(gcp::control::MonitorStream *ms, int dowait)
35 #define MS_SEND_MSG(fn) \
36 gcp::control::MsSendState (fn)(gcp::control::MonitorStream *ms, int dowait)
45 #define MS_QUEUE_REGSET(fn) \
46 gcp::control::MsSendState (fn)(gcp::control::MonitorStream *ms)
55 #define MS_QUEUE_INTERVAL(fn) \
56 gcp::control::MsSendState (fn)(gcp::control::MonitorStream *ms)
66 #define MS_QUEUE_REWIND(fn) \
67 gcp::control::MsSendState (fn)(gcp::control::MonitorStream *ms)
76 #define MS_SELECT_FD(fn) int (fn)(gcp::control::MonitorStream *ms)
82 #define MS_DESTRUCTOR(fn) void *(fn)(void *context)
87 #define MS_ARRAYMAP(fn) ArrayMap *(fn)(gcp::control::MonitorStream *ms)
92 #define MS_REGMAP(fn) RegMap *(fn)(gcp::control::MonitorStream *ms)
193 MS_DESTRUCTOR(*del_fn);
195 MS_READ_FRAME(*read_fn);
197 MS_SEND_MSG(*send_fn);
200 MS_QUEUE_REGSET(*regset_fn);
203 MS_QUEUE_INTERVAL(*interval_fn);
206 MS_QUEUE_REWIND(*rewind_fn);
208 MS_SELECT_FD(*fd_fn);
209 MS_ARRAYMAP(*arraymap_fn);
579 std::string regMapStr_;
580 std::string boardStr_;
581 std::string blockStr_;
592 void initialize(
int id, std::string regMapName, std::string boardName,
655 bool dowait,
bool pedantic,
656 std::vector<MonitorSelection>& selections,
657 std::vector<gcp::util::RegDescription>& regs);
750 MS_READ_FRAME(*read_fn), MS_SEND_MSG(*send_fn),
751 MS_QUEUE_REGSET(*regset_fn),
752 MS_QUEUE_INTERVAL(*interval_fn),
753 MS_QUEUE_REWIND(*rewind_fn),
754 MS_SELECT_FD(*fd_fn),
755 MS_ARRAYMAP(*arraymap_fn),
Definition: monitor_stream.h:574
Definition: MonitorDataType.h:16
Definition: RegisterSet.h:21
MonitorSelection(int id, std::string regMapName, std::string boardName, std::string blockName, gcp::util::CoordRange *range=0)
Definition: monitor_stream.c:1819
~MonitorSelection()
Definition: monitor_stream.c:1840
Definition: CoordRange.h:20
Definition: monitor_stream.h:190
void initialize(int id, std::string regMapName, std::string boardName, std::string blockName, gcp::util::CoordRange *range)
Definition: monitor_stream.c:1785
Definition: RegAxisRange.h:27
Definition: RegDescription.h:26
Definition: arraymap.h:177