Initial revision.
This commit is contained in:
parent
890ac4d237
commit
26bdfd033b
1 changed files with 34 additions and 0 deletions
34
src/Airports/genrunways.cxx
Normal file
34
src/Airports/genrunways.cxx
Normal file
|
@ -0,0 +1,34 @@
|
|||
// dump out a gdbm version of the simple airport file
|
||||
|
||||
#include "runways.hxx"
|
||||
|
||||
int main( int argc, char **argv ) {
|
||||
FGRunwaysUtil runways;
|
||||
FGRunway r;
|
||||
|
||||
if ( argc == 3 ) {
|
||||
runways.load( argv[1] );
|
||||
runways.dump_mk4( argv[2] );
|
||||
} else {
|
||||
cout << "usage: " << argv[0] << " <in> <out>" << endl;
|
||||
}
|
||||
|
||||
cout << endl;
|
||||
|
||||
FGRunways runway_db( argv[2] );
|
||||
|
||||
#if 0
|
||||
while ( runway_db.next( &r ) ) {
|
||||
cout << r.id << " " << r.rwy_no << endl;
|
||||
}
|
||||
#endif
|
||||
|
||||
runway_db.search( "KMSP", &r );
|
||||
|
||||
while ( r.id == "KMSP" ) {
|
||||
cout << r.id << " " << r.rwy_no << endl;
|
||||
runway_db.next( &r );
|
||||
}
|
||||
|
||||
|
||||
}
|
Loading…
Add table
Reference in a new issue