X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FNavaids%2Fnavdb.hxx;h=0036a402f93f2db57b71151acb0ba4259248eb23;hb=5ccc83566785c9b5b75e8d03579dbd1aa45d7237;hp=7c477792cb81e4dd4141a4b37e02c66be7935d93;hpb=d9bfd5a425df1bad7e3c53a64adce871e299a6b9;p=flightgear.git diff --git a/src/Navaids/navdb.hxx b/src/Navaids/navdb.hxx index 7c477792c..0036a402f 100644 --- a/src/Navaids/navdb.hxx +++ b/src/Navaids/navdb.hxx @@ -26,33 +26,24 @@ #include -#include - -// #include -// #include -// #include - -#include "navlist.hxx" -#include "fixlist.hxx" - -// SG_USING_STD(map); -// SG_USING_STD(vector); -// SG_USING_STD(string); +#include +// forward decls +class FGTACANList; +class SGPath; +class SGPropertyNode; +class FGRunway; +namespace flightgear +{ + // load and initialize the navigational databases -bool fgNavDBInit( FGAirportList *airports, - FGNavList *navlist, FGNavList *loclist, FGNavList *gslist, - FGNavList *dmelist, FGNavList *mkrbeacons, - 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( FGRunwayList *runways, FGNavList *loclist, - double threshold ); - +bool navDBInit(const SGPath& path); + +bool loadCarrierNav(const SGPath& path); + +bool loadTacan(const SGPath& path, FGTACANList *channellist); + +} // of namespace flightgear + #endif // _FG_NAVDB_HXX