Added PQ acceleration and units for mile / statute mile

This commit is contained in:
Klaus Basan
2013-04-25 12:06:54 +02:00
parent a31e405b6b
commit 2d8720c6ae
4 changed files with 170 additions and 11 deletions

View File

@@ -1,4 +1,4 @@
/* Copyright (C) 2013 VATSIM Community
/* Copyright (C) 2013 VATSIM Community / contributors
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
@@ -14,7 +14,6 @@ namespace PhysicalQuantities
/*!
* \brief Mass
* \author KWB
*/
class CMass : public CPhysicalQuantity<CMassUnit, CMass>
{
@@ -23,23 +22,27 @@ public:
* \brief Default constructor
*/
CMass() : CPhysicalQuantity(0, CMassUnit::kg(), CMassUnit::kg()) {}
/*!
* \brief Init by int value
* \param value
* \param unit
*/
CMass(qint32 value, const CMassUnit &unit) : CPhysicalQuantity(value, unit, CMassUnit::kg()) {}
/*!
* \brief Init by double value
* \param value
* \param unit
*/
CMass(double value, const CMassUnit &unit) : CPhysicalQuantity(value, unit, CMassUnit::kg()) {}
/*!
* \brief Copy constructor
* \param mass
*/
CMass(const CPhysicalQuantity &mass) : CPhysicalQuantity(mass) {}
/*!
* \brief Virtual destructor
*/
@@ -48,4 +51,4 @@ public:
} // namespace
} // namespace
#endif // BLACKMISC_PQMASS_H
#endif // guard