1 // dump out a gdbm version of the simple airport file
3 #include <simgear/compiler.h>
7 #include <simgear/debug/logstream.hxx>
11 #if !defined(SG_HAVE_NATIVE_SGI_COMPILERS)
16 int main( int argc, char **argv ) {
17 FGRunwaysUtil runways;
20 sglog().setLogLevels( SG_ALL, SG_INFO );
23 runways.load( argv[1] );
24 runways.dump_mk4( argv[2] );
26 cout << "usage: " << argv[0] << " <in> <out>" << endl;
32 FGRunways runway_db( argv[2] );
35 while ( runway_db.next( &r ) ) {
36 cout << r.id << " " << r.rwy_no << endl;
40 runway_db.search( "KMSP", &r );
42 while ( r.id == "KMSP" ) {
43 cout << r.id << " " << r.rwy_no << endl;