]> git.mxchange.org Git - flightgear.git/blobdiff - src/Instrumentation/dclgps.hxx
httpd: better handling of first-time notifications
[flightgear.git] / src / Instrumentation / dclgps.hxx
index be3469aafc1f27dfd2119f29df2fe69d0c6c3648..a49fafda864c0ffc2a9936c61272ac8164fc7789 100644 (file)
@@ -26,7 +26,8 @@
 #ifndef _DCLGPS_HXX
 #define _DCLGPS_HXX
 
-#include "render_area_2d.hxx"
+#include <Cockpit/render_area_2d.hxx>
+
 #include <string>
 #include <list>
 #include <vector>
@@ -34,6 +35,7 @@
 
 #include <simgear/structure/subsystem_mgr.hxx>
 #include <simgear/props/props.hxx>
+#include <simgear/props/tiedpropertylist.hxx>
 #include <Navaids/positioned.hxx>
 
 class SGTime;
@@ -95,7 +97,7 @@ typedef gps_waypoint_map::const_iterator gps_waypoint_map_const_iterator;
 class GPSFlightPlan {
 public:
   std::vector<GPSWaypoint*> waypoints;
-       inline bool IsEmpty() { return(waypoints.size() == 0); }
+       inline bool IsEmpty() { return waypoints.empty(); }
 };
 
 // TODO - probably de-public the internals of the next 2 classes and add some methods!
@@ -433,12 +435,9 @@ protected:
        
        // Configuration that affects flightplan operation
        bool _turnAnticipationEnabled;
-        
-       // Magvar stuff.  Might get some of this stuff (such as time) from FG in future.
-       SGTime* _time;
-       
-  std::list<std::string> _messageStack;
-       
+
+       std::list<std::string> _messageStack;
+
        virtual void CreateFlightPlan(GPSFlightPlan* fp, std::vector<std::string> ids, std::vector<GPSWpType> wps);
        
        // Orientate the GPS unit to a flightplan - ie. figure out from current position
@@ -464,6 +463,8 @@ protected:
        // More hackery since we aren't actually storing an approach class... Doh!
        std::string _approachAbbrev;
        std::string _approachRwyStr;
+private:
+       simgear::TiedPropertyList _tiedProperties;
 };
 
 #endif  // _DCLGPS_HXX