int currentIndex() const;
- void setFlightPlan(flightgear::FlightPlan* plan);
- flightgear::FlightPlan* flightPlan() const;
+ void setFlightPlan(const flightgear::FlightPlanRef& plan);
+ flightgear::FlightPlanRef flightPlan() const;
void clearRoute();
flightgear::WayptRef waypointFromString(const std::string& target);
+ static const char* subsystemName() { return "route-manager"; }
private:
bool commandDefineUserWaypoint(const SGPropertyNode* arg);
bool commandDeleteUserWaypoint(const SGPropertyNode* arg);
- flightgear::FlightPlan* _plan;
+ flightgear::FlightPlanRef _plan;
time_t _takeoffTime;
time_t _touchdownTime;