libgpsmm.adoc 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. = libgpsmm(3)
  2. :Author: Alfredo Pironti
  3. :Date: 19 January 2021
  4. :email: <alfredio@users.sourceforge.net>
  5. :keywords: gps, libgpsmm, libQgpsm
  6. :manmanual: GPSD Documentation
  7. :mansource: GPSD, Version {gpsdver}
  8. :robots: index,follow
  9. :sectlinks:
  10. :toc: macro
  11. :type: manpage
  12. :webfonts!:
  13. include::../www/inc-menu.adoc[]
  14. == NAME
  15. libgpsmm, libQgpsm - C++ and QT class wrappers for the GPS daemon
  16. == SYNOPSIS
  17. $$C++:$$
  18. $$#include <libgpsmm>$$
  19. struct gps_data_t * open(char * host char * port)
  20. struct gps_data_t * open(void)
  21. struct gps_data_t * send(char * request)
  22. struct gps_data_t * read(void)
  23. struct gps_data_t * waiting(int)
  24. struct gps_data_t * stream unsigned(int flags)
  25. == DESCRIPTION
  26. _libgpsmm_ and _libQgpsmm_ are mere wrappers over _libgps_. The important
  27. difference between the libraries is that _libgpsmm_ is targeted at C++
  28. applications and contained in _libgps_, while _libQgpsmm_ is platform
  29. independent by using _QTcpSocket_ to connect to _gpsd_ and shipped as an
  30. additional library due to the necessary linking to QT. Method names are
  31. the same as the analogue C functions. For a detailed description of the
  32. functions please read libgps(3). `open()` must be called after class
  33. constructor and before any other method (open()` is not inside the
  34. constructor since it may fail, however constructors have no return
  35. value). The analogue of the C function `gps_close()` is in the
  36. destructor.
  37. == SEE ALSO
  38. *gpsd*(8), *gps*(1), *libgps*(3)
  39. == RESOURCES
  40. *Project web site:* {gpsdweb}
  41. == COPYING
  42. This file is Copyright 2013 by the GPSD project +
  43. SPDX-License-Identifier: BSD-2-clause