1LIBGPSMM(3) GPSD Documentation LIBGPSMM(3)
2
3
4
6 libgpsmm, libQgpsmm - C++ and QT class wrapper for the GPS daemon
7
9 C++:
10
11 #include <libgpsmm>
12
13
14 struct gps_data_t *open(char *host, char *port);
15
16 struct gps_data_t *open(void);
17
18 struct gps_data_t *query(char *request);
19
20 struct gps_data_t *poll(void);
21
22 int set_callback(void (*hook)(struct gps_data_t *sentence, char *buf));
23
24 int del_callback(void);
25
26 struct gps_data_t *stream(unsigned intflags);
27
29 libgpsmm and libQgpsmm are mere wrappers over libgps. The important
30 difference between the libraries is that libgpsmm is targeted at C++
31 applications and contained in libgps, while libQgpsmm is platform
32 independant by using QTcpSocket to connect to gpsd and shipped as an
33 additional library due to the necessary linking to QT. Method names are
34 the same as the analogue C functions. For a detailed description of the
35 functions please read libgps(3). open() must be called after class
36 constructor and before any other method (open() is not inside the
37 constructor since it may fail, however constructors have no return
38 value). The analogue of the C function gps_close() is in the
39 destructor.
40
42 gpsd(8), gps(1), libgps(3).
43
45 Alfredo Pironti <alfredio@users.sourceforge.net>.
46
47
48
49The GPSD Project 13 May 2005 LIBGPSMM(3)