3 #ifndef GCP_ANTENNA_CONTROL_GPSINTHANDLER_H
4 #define GCP_ANTENNA_CONTROL_GPSINTHANDLER_H
16 #define GPS_CALLBACK_FN(fn) void (fn)(void* args)
18 #include "gcp/util/common/Runnable.h"
19 #include "gcp/util/common/TimeVal.h"
35 bool simulateGpsCard,
unsigned short priority);
38 bool simulateGpsCard=
false);
77 GPS_CALLBACK_FN(*fn_);
80 HandlerInfo(GPS_CALLBACK_FN(*fn),
void* arg) :
87 static const std::string devName_;
93 std::vector<HandlerInfo> handlers_;
105 bool simulateGpsCard_;
111 static RUN_FN(runFn);
139 #endif // End #ifndef GCP_ANTENNA_CONTROL_GPSINTHANDLER_H
Definition: GpsIntHandler.h:28
void runSim()
Definition: GpsIntHandler.cc:253
void open()
Definition: GpsIntHandler.cc:60
void stop()
Definition: GpsIntHandler.cc:115
Definition: Runnable.h:23
void run()
Definition: GpsIntHandler.cc:120
void registerCallback(GPS_CALLBACK_FN(*fn), void *arg)
Definition: GpsIntHandler.cc:88
GpsIntHandler(bool spawn, bool simulateTimer, bool simulateGpsCard, unsigned short priority)
Definition: GpsIntHandler.cc:22
void runReal()
Definition: GpsIntHandler.cc:132
void runTest()
Definition: GpsIntHandler.cc:221
virtual ~GpsIntHandler()
Definition: GpsIntHandler.cc:52