1 #ifndef SZA_TRANSLTOR_MASTER_H
2 #define SZA_TRANSLTOR_MASTER_H
13 #include "gcp/util/common/Directives.h"
14 #include "gcp/util/common/GenericMasterTask.h"
16 #include "gcp/grabber/common/MasterMsg.h"
18 #define IMAGE_SIGNAL SIGRTMIN+1
19 #define CONNECT_SIGNAL SIGRTMIN+2
23 #define MASTER_TASK_FWD_FN(fn) void (fn)(MasterMsg* msg)
61 bool simulate,
unsigned channel);
114 std::string ctlHost_;
125 inline bool simulate() {
138 static THREAD_START(startControl);
143 static THREAD_CLEAN(cleanControl);
148 static THREAD_START(startScanner);
153 static THREAD_CLEAN(cleanScanner);
158 static THREAD_START(startSignal);
163 static THREAD_CLEAN(cleanSignal);
171 void processMsg(MasterMsg* msg);
181 static SIGNALTASK_HANDLER_FN(sendShutDownMsg);
186 static SIGNALTASK_HANDLER_FN(sendConnectControlMsg);
191 static SIGNALTASK_HANDLER_FN(sendConnectScannerMsg);
197 void sendControlConnectedMsg(
bool connected);
203 void sendScannerConnectedMsg(
bool connected);
208 void installSignals();
213 void installTimers();
221 #endif // End #ifndef
~Master()
Definition: Master.cc:82
std::string imHost()
Definition: Master.cc:95
Definition: GenericMasterTask.h:22
MASTER_TASK_FWD_FN(forwardMasterMsg)
Master(std::string ctlHost, std::string imHost, bool simulate, unsigned channel)
std::string ctlHost()
Definition: Master.cc:87