2000-03-29 20:23:28 +00:00
|
|
|
// dump out a gdbm version of the simple airport file
|
|
|
|
|
|
|
|
#include "simple.hxx"
|
|
|
|
|
|
|
|
int main( int argc, char **argv ) {
|
|
|
|
FGAirportsUtil airports;
|
|
|
|
FGAirport a;
|
|
|
|
|
|
|
|
if ( argc == 3 ) {
|
|
|
|
airports.load( argv[1] );
|
2000-05-27 05:54:02 +00:00
|
|
|
airports.dump_mk4( argv[2] );
|
2000-03-29 20:23:28 +00:00
|
|
|
} else {
|
|
|
|
cout << "usage: " << argv[0] << " <in> <out>" << endl;
|
|
|
|
}
|
2000-05-27 05:54:02 +00:00
|
|
|
|
|
|
|
// FGAirports airport_db( argv[2] );
|
|
|
|
// airport_db.search( "KANEZZZ", &a );
|
|
|
|
|
2000-03-29 20:23:28 +00:00
|
|
|
}
|