X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FNavaids%2Fnavdb.hxx;h=c2231423c30da46e621b19f42ef5767836406c9a;hb=6bf47cd248ed388e6a4dd3ffa2d00977b00b62fb;hp=5c2aa117ce252120bb2a4208df3d14de07090a8a;hpb=0c5e9f46e79bb7ed991aa1fda5c382308353824e;p=flightgear.git diff --git a/src/Navaids/navdb.hxx b/src/Navaids/navdb.hxx index 5c2aa117c..c2231423c 100644 --- a/src/Navaids/navdb.hxx +++ b/src/Navaids/navdb.hxx @@ -26,21 +26,31 @@ #include +#include -class FGNavList; +// forward decls class FGTACANList; +class SGPath; +class SGPropertyNode; +class FGRunway; +namespace flightgear +{ + // load and initialize the navigational databases -bool fgNavDBInit( FGNavList *navlist, FGNavList *loclist, FGNavList *gslist, - FGNavList *dmelist, - FGNavList *tacanlist, FGNavList *carrierlist, - FGTACANList *channellist ); - +bool navDBInit(const SGPath& path); + +bool loadCarrierNav(const SGPath& path); + +bool loadTacan(const SGPath& path, FGTACANList *channellist); /** - * 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. + * Return the property node corresponding to the runway ILS installation, + * from the Airports/I/C/A/ICAO.ils.xml file (loading it if necessary) + * returns NULL is no ILS data is defined for the runway. */ -FGRunway* getRunwayFromName(const std::string& aName); +SGPropertyNode* ilsDataForRunwayAndNavaid(FGRunway* aRunway, const std::string& aNavIdent); +} // of namespace flightgear + #endif // _FG_NAVDB_HXX