FlightGear next
AV400Sim.hxx
Go to the documentation of this file.
1// AV400Sim.hxx -- Garmin 400 series protocal class. This AV400Sim
2// protocol generates the set of "simulator" commands a garmin 400
3// series gps would expect as input in simulator mode. The AV400
4// protocol generates the set of commands that a garmin 400 series gps
5// would emit.
6//
7// Written by Curtis Olson, started Januar 2009.
8//
9// Copyright (C) 2009 Curtis L. Olson - http://www.flightgear.org/~curt
10//
11// This program is free software; you can redistribute it and/or
12// modify it under the terms of the GNU General Public License as
13// published by the Free Software Foundation; either version 2 of the
14// License, or (at your option) any later version.
15//
16// This program is distributed in the hope that it will be useful, but
17// WITHOUT ANY WARRANTY; without even the implied warranty of
18// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19// General Public License for more details.
20//
21// You should have received a copy of the GNU General Public License
22// along with this program; if not, write to the Free Software
23// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
24//
25// $Id$
26
27
28#ifndef _FG_AV400SIM_HXX
29#define _FG_AV400SIM_HXX
30
31
32#include <simgear/compiler.h>
33
34#include <string>
35
36#include "protocol.hxx"
37
39
40class FGAV400Sim : public FGProtocol {
41
42 char buf[ FG_MAX_MSG_SIZE ];
43 int length;
45
46public:
47
48 FGAV400Sim();
50
51 bool gen_message();
52 bool parse_message();
53
54 // open hailing frequencies
55 bool open();
56
57 // process work for this port
58 bool process();
59
60 // close the channel
61 bool close();
62};
63
64
65#endif // _FG_AV400SIM_HXX
bool close()
Definition AV400Sim.cxx:272
bool parse_message()
Definition AV400Sim.cxx:179
bool process()
Definition AV400Sim.cxx:243
bool open()
Definition AV400Sim.cxx:222
bool gen_message()
Definition AV400Sim.cxx:41
Encapsulate the FDM properties in some getter/setter helpers.
#define FG_MAX_MSG_SIZE
Definition protocol.hxx:33