Debian Codegraph @

src/Network/garmin.hxx

raw symbols SCIP
1 // garmin.hxx -- Garmin protocol class
2 //
3 // Written by Curtis Olson, started November 1999.
4 //
5 // Copyright (C) 1999 Curtis L. Olson - http://www.flightgear.org/~curt
6 //
7 // This program is free software; you can redistribute it and/or
8 // modify it under the terms of the GNU General Public License as
9 // published by the Free Software Foundation; either version 2 of the
10 // License, or (at your option) any later version.
11 //
12 // This program is distributed in the hope that it will be useful, but
13 // WITHOUT ANY WARRANTY; without even the implied warranty of
14 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 // General Public License for more details.
16 //
17 // You should have received a copy of the GNU General Public License
18 // along with this program; if not, write to the Free Software
19 // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20 //
21 // $Id$
22
23 #ifndef _FG_GARMIN_HXX
24 #define _FG_GARMIN_HXX
25
26 #include "nmea.hxx"
27
28 namespace NMEA
29 {
30 // Garmin proprietary messages
31 namespace GARMIN
32 {
33 const unsigned int PGRMZ = (1<<0);
34 }
35 }
36
37
38 class FGGarmin : public FGNMEA {
39
40
41 protected:
42 unsigned int mGarminMessages;
43 bool mMetric;
44
45 // process a Garmin sentence
46 virtual void parse_message(const std::vector<std::string>& tokens);
47
48 public:
49 FGGarmin();
50 ~FGGarmin();
51
52 virtual bool gen_message();
53 };
54
55 #endif // _FG_GARMIN_HXX