Constructor for PQ by string (e.g. 100km/h),

motivated by MS review https://dev.vatsim-germany.org/issues/212#note-6
refs #212
This commit is contained in:
Klaus Basan
2014-04-30 01:15:30 +02:00
parent 7b5e768513
commit 112bd55362
8 changed files with 21 additions and 0 deletions

View File

@@ -25,6 +25,9 @@ namespace BlackMisc
//! Init by double value
CAngle(double value, const CAngleUnit &unit): CPhysicalQuantity(value, unit) {}
//! \copydoc CPhysicalQuantity(const QString &unitString)
CAngle(const QString &unitString) : CPhysicalQuantity(unitString) {}
/*!
* \brief Init as sexagesimal degrees, minutes, seconds
* The sign of all parameters must be the same, either all positive or all negative.