X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FInstrumentation%2Fdclgps.hxx;h=a49fafda864c0ffc2a9936c61272ac8164fc7789;hb=1867ccb4a8484b9bc856c88629e09e25bcc35d42;hp=be3469aafc1f27dfd2119f29df2fe69d0c6c3648;hpb=b1b4b7ecf48c4420d4445979c36cbf3f80be616a;p=flightgear.git diff --git a/src/Instrumentation/dclgps.hxx b/src/Instrumentation/dclgps.hxx index be3469aaf..a49fafda8 100644 --- a/src/Instrumentation/dclgps.hxx +++ b/src/Instrumentation/dclgps.hxx @@ -26,7 +26,8 @@ #ifndef _DCLGPS_HXX #define _DCLGPS_HXX -#include "render_area_2d.hxx" +#include + #include #include #include @@ -34,6 +35,7 @@ #include #include +#include #include class SGTime; @@ -95,7 +97,7 @@ typedef gps_waypoint_map::const_iterator gps_waypoint_map_const_iterator; class GPSFlightPlan { public: std::vector 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 _messageStack; - + + std::list _messageStack; + virtual void CreateFlightPlan(GPSFlightPlan* fp, std::vector ids, std::vector 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