]> git.mxchange.org Git - flightgear.git/blobdiff - src/Airports/runways.hxx
Added a property output feature to ControlMap that allows arbitrary binding
[flightgear.git] / src / Airports / runways.hxx
index 4b6e5e3d131ffda22a196fb72e1cd993ccfb8dbd..041e904765ca367a37afa3b13d9097088fcc603a 100644 (file)
@@ -38,7 +38,7 @@
 
 #ifdef SG_HAVE_STD_INCLUDES
 #  include <istream>
-#elif defined( FG_HAVE_NATIVE_SGI_COMPILERS )
+#elif defined( SG_HAVE_NATIVE_SGI_COMPILERS )
 #  include <iostream.h>
 #elif defined( __BORLANDC__ )
 #  include <iostream>
 #include STL_STRING
 #include <vector>
 
+#ifndef _MSC_VER
 #define NDEBUG                 // she don't work without it.
+#endif // !_MSC_VER
+
 #include <mk4.h>
 #include <mk4str.h>
+
+#ifndef _MSC_VER
 #undef NDEBUG
+#endif // !_MSC_VER
 
-FG_USING_STD(string);
-FG_USING_STD(vector);
+SG_USING_STD(string);
+SG_USING_STD(vector);
 
-#if ! defined( FG_HAVE_NATIVE_SGI_COMPILERS )
-FG_USING_STD(istream);
+#if ! defined( SG_HAVE_NATIVE_SGI_COMPILERS )
+SG_USING_STD(istream);
 #endif
 
 
@@ -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();
 };