add getter for the arrival waypoints

此提交包含在:
Sven Czarnian
2021-11-25 22:25:11 +01:00
父節點 2240978b01
當前提交 874cc7871d
共有 2 個檔案被更改,包括 27 行新增0 行删除

查看文件

@@ -52,5 +52,20 @@ namespace aman {
* @return The position
*/
const GeoCoordinate& position() const noexcept;
/**
* @brief Returns the planned altitude
* @return The planned altitude
*/
const Length& altitude() const noexcept;
/**
* @brief Returns the indicated airspeed
* @return The indicated airspeed
*/
const Velocity& indicatedAirspeed() const noexcept;
/**
* @brief Returns the planned arrival time
* @return The planned arrival time
*/
const UtcTime::Point& plannedArrivalTime() const noexcept;
};
}

查看文件

@@ -35,3 +35,15 @@ const std::string& ArrivalWaypoint::name() const noexcept {
const GeoCoordinate& ArrivalWaypoint::position() const noexcept {
return this->m_position;
}
const Length& ArrivalWaypoint::altitude() const noexcept {
return this->m_altitude;
}
const Velocity& ArrivalWaypoint::indicatedAirspeed() const noexcept {
return this->m_indicatedAirspeed;
}
const UtcTime::Point& ArrivalWaypoint::plannedArrivalTime() const noexcept {
return this->m_plannedArrivalTime;
}