Build gdbm database from original text file.
This commit is contained in:
parent
3b34980556
commit
7db09cfd2f
1 changed files with 15 additions and 0 deletions
15
src/Airports/buildsimple.cxx
Normal file
15
src/Airports/buildsimple.cxx
Normal file
|
@ -0,0 +1,15 @@
|
|||
// 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] );
|
||||
airports.dump_gdbm( argv[2] );
|
||||
} else {
|
||||
cout << "usage: " << argv[0] << " <in> <out>" << endl;
|
||||
}
|
||||
}
|
Loading…
Add table
Reference in a new issue