t
Title: libgpsmm
Author: [see the "AUTHOR" section]
Generator: DocBook XSL Stylesheets v1.79.1 <http://docbook.sf.net/>
Date: 13 May 2005
Manual: GPSD Documentation
Source: The GPSD Project
Language: English

"LIBGPSMM" "3" "13 May 2005" "The GPSD Project" "GPSD Documentation"
-----------------------------------------------------------------
* Define some portability stuff
-----------------------------------------------------------------
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
http://bugs.debian.org/507673
http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-----------------------------------------------------------------
* set default formatting
-----------------------------------------------------------------
disable hyphenation
disable justification (adjust text to left margin only)
-----------------------------------------------------------------
* MAIN CONTENT STARTS HERE *
-----------------------------------------------------------------
"NAME"
libgpsmm, libQgpsmm - C++ and QT class wrapper for the GPS daemon
"SYNOPSIS"

C++:

#include <libgpsmm>

\w'struct gps_data_t *open('u "struct gps_data_t *open(char *" "host" ", char *" "port" ");"

\w'struct gps_data_t *open('u "struct gps_data_t *open(void);"

\w'struct gps_data_t *send('u "struct gps_data_t *send(char *" "request" ");"

\w'struct gps_data_t *read('u "struct gps_data_t *read(void);"

\w'struct gps_data_t *waiting('u "struct gps_data_t *waiting(int);"

\w'struct gps_data_t *stream('u "struct gps_data_t *stream(unsigned int" "flags" ");"

"DESCRIPTION"

libgpsmm and libQgpsmm are mere wrappers over libgps. The important difference between the libraries is that libgpsmm is targeted at C++ applications and contained in libgps, while libQgpsmm is platform independent by using QTcpSocket to connect to gpsd and shipped as an additional library due to the necessary linking to QT. Method names are the same as the analogue C functions. For a detailed description of the functions please read libgps(3). open() must be called after class constructor and before any other method (open() is not inside the constructor since it may fail, however constructors have no return value). The analogue of the C function gps_close() is in the destructor.

"SEE ALSO"

gpsd(8), gps(1), libgps(3).

"AUTHOR"

Alfredo Pironti <alfredio@users.sourceforge.net>.