add getter for the arrival waypoints

This commit is contained in:
Sven Czarnian
2021-11-25 22:25:11 +01:00
parent 2240978b01
commit 874cc7871d
2 changed files with 27 additions and 0 deletions

View File

@@ -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;
};
}

View File

@@ -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;
}