mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-17 02:45:33 +08:00
Avionics classes for Transponder, ADF, changed namespace to 2ndlevel
This commit is contained in:
@@ -1,14 +1,22 @@
|
||||
/* Copyright (C) 2013 VATSIM Community
|
||||
* 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/. */
|
||||
|
||||
#ifndef PQMASS_H
|
||||
#define PQMASS_H
|
||||
#include "blackmisc/pqphysicalquantity.h"
|
||||
|
||||
namespace BlackMisc {
|
||||
namespace BlackMisc
|
||||
{
|
||||
namespace PhysicalQuantities
|
||||
{
|
||||
|
||||
/*!
|
||||
* \brief Mass
|
||||
* \author KWB
|
||||
*/
|
||||
class CMass : public CPhysicalQuantity<CMassUnit,CMass>
|
||||
class CMass : public CPhysicalQuantity<CMassUnit, CMass>
|
||||
{
|
||||
public:
|
||||
/*!
|
||||
@@ -20,23 +28,24 @@ public:
|
||||
* \param value
|
||||
* \param unit
|
||||
*/
|
||||
CMass(qint32 value, const CMassUnit &unit) : CPhysicalQuantity(value, unit, CMassUnit::kg()){}
|
||||
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()){}
|
||||
CMass(double value, const CMassUnit &unit) : CPhysicalQuantity(value, unit, CMassUnit::kg()) {}
|
||||
/*!
|
||||
* \brief Copy constructor
|
||||
* \param mass
|
||||
*/
|
||||
CMass(const CPhysicalQuantity &mass) : CPhysicalQuantity(mass){}
|
||||
CMass(const CPhysicalQuantity &mass) : CPhysicalQuantity(mass) {}
|
||||
/*!
|
||||
* \brief Virtual destructor
|
||||
*/
|
||||
virtual ~CMass() {}
|
||||
};
|
||||
} // namespace
|
||||
} // namespace
|
||||
|
||||
#endif // PQMASS_H
|
||||
|
||||
Reference in New Issue
Block a user