]> git.mxchange.org Git - flightgear.git/blob - src/Network/opengc.hxx
Recover this file. We are not able to use boost as a replacement because
[flightgear.git] / src / Network / opengc.hxx
1
2 //// opengc.hxx - 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 // Adapted from original network code developed by C. Olson
9 //
10 // This program is free software; you can redistribute it and/or
11 // modify it under the terms of the GNU General Public License as
12 // published by the Free Software Foundation; either version 2 of the
13 // License, or (at your option) any later version.
14 //
15 // This program is distributed in the hope that it will be useful, but
16 // WITHOUT ANY WARRANTY; without even the implied warranty of
17 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
18 // General Public License for more details.
19 //
20 // You should have received a copy of the GNU General Public License
21 // along with this program; if not, write to the Free Software
22 // Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
23 //
24
25
26 #ifndef _FG_OPENGC_HXX
27 #define _FG_OPENGC_HXX
28
29 #include <simgear/compiler.h>
30
31 #include STL_STRING
32
33 #include <FDM/flight.hxx>
34
35 #include "protocol.hxx"
36 #include "opengc_data.hxx"
37
38 class FGOpenGC : public FGProtocol, public FGInterface {
39
40     ogcFGData buf;
41     int length;
42
43 public:
44
45     FGOpenGC();
46     ~FGOpenGC();
47
48     // open hailing frequencies
49     bool open();
50
51     // process work for this port
52     bool process();
53
54     // close the channel
55     bool close();
56
57    
58 };
59
60 #endif // _FG_OPENGC_HXX
61
62
63