mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-25 02:05:43 +08:00
Renamed distamce to SI conform name length: CDistance->CLength
Started with aviation classes
This commit is contained in:
40
src/blackmisc/pqlength.h
Normal file
40
src/blackmisc/pqlength.h
Normal file
@@ -0,0 +1,40 @@
|
||||
#ifndef PQlength_H
|
||||
#define PQlength_H
|
||||
#include "blackmisc/pqphysicalquantity.h"
|
||||
|
||||
namespace BlackMisc {
|
||||
|
||||
/*!
|
||||
* \brief Physical unit length (length)
|
||||
* \author KWB
|
||||
*/
|
||||
class CLength : public CPhysicalQuantity<CLengthUnit,CLength>
|
||||
{
|
||||
public:
|
||||
/*!
|
||||
* \brief Default constructor
|
||||
*/
|
||||
CLength() : CPhysicalQuantity (0, CLengthUnit::m(), CLengthUnit::m()) {}
|
||||
/**
|
||||
*\brief Copy constructor
|
||||
*/
|
||||
CLength(const CLength &length) : CPhysicalQuantity(length) {}
|
||||
/*!
|
||||
* \brief Init by int value
|
||||
* \param value
|
||||
* \param unit
|
||||
*/
|
||||
CLength(qint32 value, const CLengthUnit &unit) : CPhysicalQuantity(value, unit, CLengthUnit::m()) {}
|
||||
/*!
|
||||
*\brief Init by double value
|
||||
* \param value
|
||||
* \param unit
|
||||
*/
|
||||
CLength(double value, const CLengthUnit &unit) : CPhysicalQuantity(value, unit, CLengthUnit::m()) {}
|
||||
/*!
|
||||
* \brief Virtual destructor
|
||||
*/
|
||||
virtual ~CLength() {}
|
||||
};
|
||||
} // namespace
|
||||
#endif // PQlength_H
|
||||
Reference in New Issue
Block a user