mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-01 05:26:45 +08:00
44 lines
1.3 KiB
C++
44 lines
1.3 KiB
C++
/* Copyright (C) 2013
|
|
* swift project Community / Contributors
|
|
*
|
|
* This file is part of swift project. It is subject to the license terms in the LICENSE file found in the top-level
|
|
* directory of this distribution and at http://www.swift-project.org/license.html. No part of swift project,
|
|
* including this file, may be copied, modified, propagated, or distributed except according to the terms
|
|
* contained in the LICENSE file.
|
|
*/
|
|
|
|
//! \file
|
|
|
|
#ifndef BLACKMISC_PQPRESSURE_H
|
|
#define BLACKMISC_PQPRESSURE_H
|
|
|
|
#include "pqphysicalquantity.h"
|
|
|
|
namespace BlackMisc
|
|
{
|
|
namespace PhysicalQuantities
|
|
{
|
|
|
|
/*!
|
|
* Physical unit distance
|
|
*/
|
|
class CPressure : public CValueObjectStdTuple<CPressure, CPhysicalQuantity<CPressureUnit, CPressure>>
|
|
{
|
|
public:
|
|
//! Default constructor
|
|
CPressure() : CValueObjectStdTuple(0, CPressureUnit::defaultUnit()) {}
|
|
|
|
//! Init by double value
|
|
CPressure(double value, const CPressureUnit &unit) : CValueObjectStdTuple(value, unit) {}
|
|
|
|
//! \copydoc CPhysicalQuantity(const QString &unitString)
|
|
CPressure(const QString &unitString) : CValueObjectStdTuple(unitString) {}
|
|
};
|
|
|
|
}
|
|
}
|
|
|
|
Q_DECLARE_METATYPE(BlackMisc::PhysicalQuantities::CPressure)
|
|
|
|
#endif // BLACKMISC_PQPRESSURE_H
|