X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FNavaids%2Fnavdb.hxx;h=5c2aa117ce252120bb2a4208df3d14de07090a8a;hb=1d4aaa2f0d84a5278689913563ca742c9d291a73;hp=3c2321221261e57c58f0cb17a797f85493c9a5f4;hpb=301054204e0412eb31f06477e32cfe6f1fcb0792;p=flightgear.git diff --git a/src/Navaids/navdb.hxx b/src/Navaids/navdb.hxx index 3c2321221..5c2aa117c 100644 --- a/src/Navaids/navdb.hxx +++ b/src/Navaids/navdb.hxx @@ -26,33 +26,21 @@ #include -#include - -// #include -// #include -// #include - -#include "navlist.hxx" -#include "fixlist.hxx" - -// using std::map; -// using std::vector; -// using std::string; +class FGNavList; +class FGTACANList; // load and initialize the navigational databases -bool fgNavDBInit( FGAirportList *airports, - FGNavList *navlist, FGNavList *loclist, FGNavList *gslist, - FGNavList *dmelist, FGNavList *mkrbeacons, +bool fgNavDBInit( FGNavList *navlist, FGNavList *loclist, FGNavList *gslist, + FGNavList *dmelist, FGNavList *tacanlist, FGNavList *carrierlist, FGTACANList *channellist ); -// This routines traverses the localizer list and attempts to match -// each entry with it's corresponding runway. When it is successful, -// it then "moves" the localizer and updates it's heading so it -// *perfectly* aligns with the runway, but is still the same distance -// from the runway threshold. -void fgNavDBAlignLOCwithRunway( FGAirportList *airport, FGNavList *loclist, - double threshold ); + +/** + * Helper to map a nav.data name (eg 'KBWI 33R GS') into a FGRunway reference. + * returns NULL, and complains loudly, if the airport/runway is not found. + */ +FGRunway* getRunwayFromName(const std::string& aName); #endif // _FG_NAVDB_HXX