]> git.mxchange.org Git - flightgear.git/blob - src/Airports/genrunways.cxx
- adjusted for no-value constructor for FGPanel
[flightgear.git] / src / Airports / genrunways.cxx
1 // dump out a gdbm version of the simple airport file
2
3 #include "runways.hxx"
4
5 int main( int argc, char **argv ) {
6     FGRunwaysUtil runways;
7     FGRunway r;
8
9     if ( argc == 3 ) {
10         runways.load( argv[1] );
11         runways.dump_mk4( argv[2] );    
12     } else {
13         cout << "usage: " << argv[0] << " <in> <out>" << endl;
14         exit(-1);
15     }
16
17     cout << endl;
18
19     FGRunways runway_db( argv[2] );
20
21 #if 0
22     while ( runway_db.next( &r ) ) {
23         cout << r.id << " " << r.rwy_no << endl;
24     }
25 #endif
26
27     runway_db.search( "KMSP", &r );
28         
29     while ( r.id == "KMSP" ) {
30         cout << r.id << " " << r.rwy_no << endl;
31         runway_db.next( &r );
32     }
33
34
35 }