X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FAirports%2Frunways.hxx;h=041e904765ca367a37afa3b13d9097088fcc603a;hb=f477a4603b63faaa9f1eb8ca75350c784a0f56ac;hp=2d67b96e4a2c7e83dba535d6b4cd135eee211968;hpb=59583890262247d73f48f4f1af21303ea41fda47;p=flightgear.git diff --git a/src/Airports/runways.hxx b/src/Airports/runways.hxx index 2d67b96e4..041e90476 100644 --- a/src/Airports/runways.hxx +++ b/src/Airports/runways.hxx @@ -49,10 +49,16 @@ #include STL_STRING #include +#ifndef _MSC_VER #define NDEBUG // she don't work without it. +#endif // !_MSC_VER + #include #include + +#ifndef _MSC_VER #undef NDEBUG +#endif // !_MSC_VER SG_USING_STD(string); SG_USING_STD(vector); @@ -113,12 +119,20 @@ public: // Destructor ~FGRunways(); - // search for the specified id. + // search for the specified apt id. // Returns true if successful, otherwise returns false. // On success, runway data is returned thru "runway" pointer. // "runway" is not changed if "apt" is not found. - bool search( const string& id, FGRunway* runway ); - FGRunway search( const string& id ); + bool search( const string& aptid, FGRunway* runway ); + bool search( const string& aptid, const string& rwyno, FGRunway* runway ); + + // DCL - search for runway closest to desired heading in degrees + bool search( const string& aptid, const int hdg, FGRunway* runway ); + + // Return the runway number of the runway closest to a given heading + string search( const string& aptid, const int tgt_hdg ); + + FGRunway search( const string& aptid ); bool next( FGRunway* runway ); FGRunway next(); };