1 // towerlist.hxx -- ATC Tower data management class
3 // Written by David Luff, started March 2002.
4 // Based on navlist.hxx by Curtis Olson, started April 2000.
6 // Copyright (C) 2000 Curtis L. Olson - curt@flightgear.org
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.
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.
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.
23 #ifndef _FG_TOWERLIST_HXX
24 #define _FG_TOWERLIST_HXX
27 #include <simgear/compiler.h>
28 #include <simgear/misc/sg_path.hxx>
44 typedef vector < FGTower > tower_list_type;
45 typedef tower_list_type::iterator tower_list_iterator;
46 typedef tower_list_type::const_iterator tower_list_const_iterator;
48 // Map containing FGTower keyed by frequency.
49 // A vector of FGTower is kept at each node since some may share frequency
50 typedef map < int, tower_list_type > tower_map_type;
51 typedef tower_map_type::iterator tower_map_iterator;
52 typedef tower_map_type::const_iterator tower_map_const_iterator;
54 tower_map_type towerlist;
61 // load all atis and build the map
62 bool init( SGPath path );
67 extern FGTowerList *current_towerlist;
70 #endif // _FG_TOWERLIST_HXX