]> git.mxchange.org Git - flightgear.git/blobdiff - src/Airports/dynamicloader.hxx
GUI ‘restore defaults’ support.
[flightgear.git] / src / Airports / dynamicloader.hxx
index 0584d06ac25b3a67e5e85a79fde1a5bb2d82dcd1..24500a46a6f3454175b70bcc8d093b96301b2334 100644 (file)
@@ -19,6 +19,7 @@
 #include <simgear/xml/easyxml.hxx>
 
 #include "dynamics.hxx"
+#include <Navaids/positioned.hxx>
 
 class FGAirportDynamicsXMLLoader : public XMLVisitor {
 public:
@@ -40,7 +41,21 @@ private:
     void startArc(const XMLAttributes &atts);
   
     FGAirportDynamics* _dynamics;
-    string value;
+    std::string value;
+  
+    // map from local (groundnet.xml) to global (nav-cache) IDs for nodes
+    std::map<int, PositionedID> _idMap;
+  
+  // data integrity - watch for unreferenced nodes and duplicated edges
+    typedef std::pair<int, int> IntPair;
+    std::set<IntPair> _arcSet;
+  
+    std::set<PositionedID> _unreferencedNodes;
+  
+    // map from allocated parking position to its local push-back node
+    // used to defer binding the push-back node until we've processed
+    // all nodes
+    std::map<PositionedID, int> _parkingPushbacks;
 };
 
 #endif