summaryrefslogtreecommitdiff
path: root/libgpsmm.xml
blob: 34c1d34eb23aaa0faf013fe9fbb59a018906830c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
                   "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
<!-- lifted from troff+man by doclifter -->
<refentry>
<refentryinfo><date>13 May 2005</date></refentryinfo>
<refmeta>
<refentrytitle>libgpsmm</refentrytitle>
<manvolnum>3</manvolnum>
<refmiscinfo class='source'>Linux</refmiscinfo>
</refmeta>
<refnamediv id='name'>
<refname>libgpsmm</refname>
<refpurpose>C++ class wrapper for the GPS daemon</refpurpose>
</refnamediv>
<refsynopsisdiv id='synopsis'>
<funcsynopsis>
<funcsynopsisinfo>

C++:

#include &lt;libgpsmm&gt;

</funcsynopsisinfo>
<funcprototype>
<funcdef>struct gps_data_t *<function>open</function></funcdef>
    <paramdef>char *<parameter>host</parameter></paramdef>
    <paramdef>char *<parameter>port</parameter></paramdef>
</funcprototype>
<funcprototype>
<funcdef>struct gps_data_t *<function>open</function></funcdef>
    <paramdef>void</paramdef>
</funcprototype>
<funcprototype>
<funcdef>struct gps_data_t *<function>query</function></funcdef>
    <paramdef>char *<parameter>request</parameter></paramdef>
</funcprototype>
<funcprototype>
<funcdef>struct gps_data_t *<function>poll</function></funcdef>
    <paramdef>void</paramdef>
</funcprototype>
<funcprototype>
<funcdef>int <function>set_callback</function></funcdef>
    <paramdef>void (*<parameter>hook</parameter>)(struct gps_data_t *sentence, char *buf)</paramdef>
</funcprototype>
<funcprototype>
<funcdef>int <function>del_callback</function></funcdef>
    <paramdef>void</paramdef>
</funcprototype>
</funcsynopsis>
</refsynopsisdiv>

<refsect1 id='description'><title>DESCRIPTION</title>

<para><emphasis remap='B'>libgpsmm</emphasis> is a mere wrapper over
<emphasis remap='B'>libgps</emphasis>. Method names are the same as
the analogue C functions. For a detailed description of the functions
please read
<citerefentry><refentrytitle>libgps</refentrytitle><manvolnum>3</manvolnum></citerefentry>.
<function>open()</function> must be called after class constructor and before any other method
(<function>open()</function> is not inside the constructor since it may fail, however constructors have no return value).
The analogue of the C function <function>gps_close()</function> is in the destructor.</para>
</refsect1>

<refsect1 id='see_also'><title>SEE ALSO</title>
<para>
<citerefentry><refentrytitle>gpsd</refentrytitle><manvolnum>8</manvolnum></citerefentry>,
<citerefentry><refentrytitle>gps</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
<citerefentry><refentrytitle>libgps</refentrytitle><manvolnum>3</manvolnum></citerefentry>.
</para>
</refsect1>

<refsect1 id='author'><title>AUTHOR</title>
<para>Alfredo Pironti &lt;alfredio@users.sourceforge.net&gt;.</para>
</refsect1>
</refentry>