Files
pilotclient/src/blackmisc/pqtemperature.h

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_CTEMPERATURE_H
#define BLACKMISC_CTEMPERATURE_H
#include "pqphysicalquantity.h"
namespace BlackMisc
{
namespace PhysicalQuantities
{
/*!
* Physical unit temperature
*/
class CTemperature : public CValueObjectStdTuple<CTemperature, CPhysicalQuantity<CTemperatureUnit, CTemperature>>
{
public:
//! Default constructor
CTemperature() : CValueObjectStdTuple(0, CTemperatureUnit::defaultUnit()) {}
//! Init by double value
CTemperature(double value, const CTemperatureUnit &unit): CValueObjectStdTuple(value, unit) {}
//! \copydoc CPhysicalQuantity(const QString &unitString)
CTemperature(const QString &unitString) : CValueObjectStdTuple(unitString) {}
};
}
}
Q_DECLARE_METATYPE(BlackMisc::PhysicalQuantities::CTemperature)
#endif // guard