]> git.mxchange.org Git - flightgear.git/blobdiff - src/Airports/runways.hxx
Update FGRunway to process information from threshold.xml files.
[flightgear.git] / src / Airports / runways.hxx
index 397db76518294fb534c7ed0f51867b9b7156d9ae..15d39c2af9fcd0eec6e6a4f9eafeffc6f1ab4787 100644 (file)
@@ -30,6 +30,8 @@
 
 // forward decls
 class FGAirport;
+class FGNavRecord;
+class SGPropertyNode;
 
 class FGRunway : public FGRunwayBase
 {
@@ -37,6 +39,7 @@ class FGRunway : public FGRunwayBase
   bool _reciprocal;
   double _displ_thresh;
   double _stopway;
+  FGNavRecord* _ils;
 public:
   
   FGRunway(FGAirport* aAirport, const std::string& rwy_no,
@@ -90,7 +93,7 @@ public:
   double stopwayM() const
   { return _stopway * SG_FEET_TO_METER; }
   
-    /**
+  /**
    * Airport this runway is located at
    */
   FGAirport* airport() const
@@ -99,6 +102,14 @@ public:
   // FIXME - should die once airport / runway creation is cleaned up
   void setAirport(FGAirport* aAirport)
   { _airport = aAirport; }
+  
+  FGNavRecord* ILS() const { return _ils; }
+  void setILS(FGNavRecord* nav) { _ils = nav; }
+  
+  /**
+   * Helper to process property data loaded from an ICAO.threshold.xml file
+   */
+  void processThreshold(SGPropertyNode* aThreshold);
 };
 
 #endif // _FG_RUNWAYS_HXX