2 // airports.hxx -- a really simplistic class to manage airport ID,
3 // lat, lon of the center of one of it's runways, and
6 // Written by Curtis Olson, started April 1998.
8 // Copyright (C) 1998 Curtis L. Olson - curt@me.umn.edu
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.
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.
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.
25 // (Log is kept at end of this file)
33 # error This library requires C++
37 #include <string> // Standard C++ string library
38 #include <map> // STL associative "array"
40 #ifdef NEEDNAMESPACESTD
54 map < string, fgAIRPORT, less<string> > airports;
62 int load( const string& file );
64 // search for the specified id
65 fgAIRPORT search( char *id );
73 #endif /* _AIRPORTS_HXX */
77 // Revision 1.2 1998/08/27 17:01:56 curt
78 // Contributions from Bernie Bright <bbright@c031.aone.net.au>
79 // - use strings for fg_root and airport_id and added methods to return
81 // - inlined all access methods,
82 // - made the parsing functions private methods,
83 // - deleted some unused functions.
84 // - propogated some of these changes out a bit further.
86 // Revision 1.1 1998/08/25 17:19:14 curt
87 // Moved from ../Main/
89 // Revision 1.7 1998/07/24 21:39:09 curt
90 // Debugging output tweaks.
91 // Cast glGetString to (char *) to avoid compiler errors.
92 // Optimizations to fgGluLookAt() by Norman Vine.
94 // Revision 1.6 1998/07/06 21:34:19 curt
95 // Added an enable/disable splash screen option.
96 // Added an enable/disable intro music option.
97 // Added an enable/disable instrument panel option.
98 // Added an enable/disable mouse pointer option.
99 // Added using namespace std for compilers that support this.
101 // Revision 1.5 1998/06/17 21:35:11 curt
102 // Refined conditional audio support compilation.
103 // Moved texture parameter setup calls to ../Scenery/materials.cxx
104 // #include <string.h> before various STL includes.
105 // Make HUD default state be enabled.
107 // Revision 1.4 1998/06/03 00:47:14 curt
108 // Updated to compile in audio support if OSS available.
109 // Updated for new version of Steve's audio library.
110 // STL includes don't use .h
111 // Small view optimizations.
113 // Revision 1.3 1998/06/01 17:54:42 curt
114 // Added Linux audio support.
115 // avoid glClear( COLOR_BUFFER_BIT ) when not using it to set the sky color.
118 // Revision 1.2 1998/05/29 20:37:22 curt
119 // Tweaked material properties & lighting a bit in GLUTmain.cxx.
120 // Read airport list into a "map" STL for dynamic list sizing and fast tree
123 // Revision 1.1 1998/04/25 15:11:11 curt
124 // Added an command line option to set starting position based on airport ID.