1 // dump out a gdbm version of the simple airport file
3 #include <simgear/compiler.h>
7 #include <simgear/debug/logstream.hxx>
14 int main( int argc, char **argv ) {
15 FGRunwaysUtil runways;
18 sglog().setLogLevels( SG_ALL, SG_INFO );
21 runways.load( argv[1] );
22 runways.dump_mk4( argv[2] );
24 cout << "usage: " << argv[0] << " <in> <out>" << endl;
30 FGRunways runway_db( argv[2] );
33 while ( runway_db.next( &r ) ) {
34 cout << r.id << " " << r.rwy_no << endl;
38 runway_db.search( "KMSP", &r );
40 while ( r.id == "KMSP" ) {
41 cout << r.id << " " << r.rwy_no << endl;