2000-03-29 20:23:28 +00:00
|
|
|
// dump out a gdbm version of the simple airport file
|
|
|
|
|
2001-07-03 16:44:37 +00:00
|
|
|
#include <simgear/debug/logstream.hxx>
|
|
|
|
|
2000-03-29 20:23:28 +00:00
|
|
|
#include "simple.hxx"
|
|
|
|
|
|
|
|
int main( int argc, char **argv ) {
|
|
|
|
FGAirportsUtil airports;
|
|
|
|
FGAirport a;
|
|
|
|
|
2001-07-03 16:44:37 +00:00
|
|
|
sglog().setLogLevels( SG_ALL, SG_INFO );
|
|
|
|
|
2000-03-29 20:23:28 +00:00
|
|
|
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
|
|
|
}
|