/*  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 BLACKMISC_CTEMPERATURE_H
#define BLACKMISC_CTEMPERATURE_H
#include "pqphysicalquantity.h"

namespace BlackMisc
{
    namespace PhysicalQuantities
    {

        /*!
         * \brief Physical unit temperature
         */
        class CTemperature : public CPhysicalQuantity<CTemperatureUnit, CTemperature>
        {
        public:
            //! Default constructor
            CTemperature() : CPhysicalQuantity(0, CTemperatureUnit::defaultUnit()) {}

            //! Init by double value
            CTemperature(double value, const CTemperatureUnit &unit): CPhysicalQuantity(value, unit) {}

            //! \copydoc CPhysicalQuantity(const QString &unitString)
            CTemperature(const QString &unitString) : CPhysicalQuantity(unitString) {}

            //! \copydoc CValueObject::toQVariant
            virtual QVariant toQVariant() const override { return QVariant::fromValue(*this); }

            //! Destructor
            virtual ~CTemperature() {}
        };

    } // namespace
} // namespace

Q_DECLARE_METATYPE(BlackMisc::PhysicalQuantities::CTemperature)

#endif // guard
