FlightGear
next
igc.hxx
Go to the documentation of this file.
1
// igc.hxx -- International Glider Commission (IGC) protocol class
2
//
3
// Written by Thorsten Brehm, started October 2013.
4
//
5
// Copyright (C) 2013 Thorsten Brehm - brehmt (at) gmail com
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 St, Fifth Floor, Boston, MA 02110-1301, USA.
20
//
22
23
#ifndef _FG_IGC_HXX
24
#define _FG_IGC_HXX
25
26
#include <simgear/compiler.h>
27
#include <
FDM/flightProperties.hxx
>
28
#include "
protocol.hxx
"
29
30
class
IGCProtocol
:
public
FGProtocol
31
{
32
char
buf[
FG_MAX_MSG_SIZE
];
33
int
length;
34
35
bool
gen_Hrecords();
36
37
public
:
38
IGCProtocol
();
39
~IGCProtocol
();
40
41
bool
gen_message
();
42
bool
parse_message
();
43
44
// open hailing frequencies
45
bool
open
();
46
47
// process work for this port
48
bool
process
();
49
50
// close the channel
51
bool
close
();
52
53
FlightProperties
fdm
;
54
};
55
56
#endif
// _FG_IGC_HXX
FGProtocol::FGProtocol
FGProtocol()
Definition
protocol.cxx:30
FlightProperties
Encapsulate the FDM properties in some getter/setter helpers.
Definition
flightProperties.hxx:44
IGCProtocol::close
bool close()
Definition
igc.cxx:229
IGCProtocol::~IGCProtocol
~IGCProtocol()
Definition
igc.cxx:45
IGCProtocol::IGCProtocol
IGCProtocol()
Definition
igc.cxx:40
IGCProtocol::gen_message
bool gen_message()
Definition
igc.cxx:87
IGCProtocol::open
bool open()
Definition
igc.cxx:182
IGCProtocol::parse_message
bool parse_message()
Definition
igc.cxx:176
IGCProtocol::fdm
FlightProperties fdm
Definition
igc.hxx:53
IGCProtocol::process
bool process()
Definition
igc.cxx:207
flightProperties.hxx
protocol.hxx
FG_MAX_MSG_SIZE
#define FG_MAX_MSG_SIZE
Definition
protocol.hxx:33
src
Network
igc.hxx
Generated on Tue Jun 3 2025 12:58:41 for FlightGear by
1.13.2