]> git.mxchange.org Git - flightgear.git/blob - src/Network/opengc.hxx
Substantial rewrite of FGNewMat, the material class. Most of the
[flightgear.git] / src / Network / opengc.hxx
1
2 //// opengc.cxx - Network interface program to send sim data onto a LAN
3 //
4 // Created by:  J. Wojnaroski  -- castle@mminternet.com
5 // Date:                21 Nov 2001 
6 //
7
8 // This program is free software; you can redistribute it and/or
9 // modify it under the terms of the GNU General Public License as
10 // published by the Free Software Foundation; either version 2 of the
11 // License, or (at your option) any later version.
12 //
13 // This program is distributed in the hope that it will be useful, but
14 // WITHOUT ANY WARRANTY; without even the implied warranty of
15 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
16 // General Public License for more details.
17 //
18 // You should have received a copy of the GNU General Public License
19 // along with this program; if not, write to the Free Software
20 // Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
21 //
22
23
24 #ifndef _FG_OPENGC_HXX
25 #define _FG_OPENGC_HXX
26
27 #include <simgear/compiler.h>
28
29 #include STL_STRING
30
31 #include <FDM/flight.hxx>
32
33 #include "protocol.hxx"
34 #include "opengc_data.hxx"
35
36 class FGOpenGC : public FGProtocol, public FGInterface, public FGEngInterface  {
37
38     ogcFGData buf;
39     int length;
40
41 public:
42
43     FGOpenGC();
44     ~FGOpenGC();
45
46     // open hailing frequencies
47     bool open();
48
49     // process work for this port
50     bool process();
51
52     // close the channel
53     bool close();
54
55    
56 };
57
58 #endif // _FG_OPENGC_HXX
59
60
61