Ref T231, utility functions

* altitude
* situation
* callsign set
* elevation set
This commit is contained in:
Klaus Basan
2018-01-24 01:33:26 +01:00
parent b5106167d9
commit 5ec095684a
8 changed files with 108 additions and 36 deletions

View File

@@ -100,6 +100,11 @@ namespace BlackMisc
//! Constructor by CLength
CAltitude(const PhysicalQuantities::CLength &altitude, ReferenceDatum datum) : CLength(altitude), m_datum(datum) {}
//! Altitude with offset
//! \remark null offset adds nothing
//! \remark epsilon 0 (zero) values ignored
CAltitude withOffset(const CLength &offset) const;
//! AGL Above ground level?
bool isAboveGroundLevel() const { return AboveGround == this->m_datum; }