swift
temperature.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (C) 2013 swift Project Community / Contributors
2 // SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-swift-pilot-client-1
3 
5 
6 #ifndef SWIFT_MISC_PQ_TEMPERATURE_H
7 #define SWIFT_MISC_PQ_TEMPERATURE_H
8 
10 #include "misc/swiftmiscexport.h"
11 
12 namespace swift::misc::physical_quantities
13 {
14 
18  class SWIFT_MISC_EXPORT CTemperature : public CPhysicalQuantity<CTemperatureUnit, CTemperature>
19  {
20  public:
23 
25  CTemperature(double value, const CTemperatureUnit &unit) : CPhysicalQuantity(value, unit) {}
26 
28  CTemperature(const QString &unitString) : CPhysicalQuantity(unitString) {}
29  };
30 
31 } // namespace swift::misc::physical_quantities
32 
34 
35 #endif // SWIFT_MISC_PQ_TEMPERATURE_H
A physical quantity such as "5m", "20s", "1500ft/s".
CTemperature(const QString &unitString)
Constructor by parsed string, e.g. 10m.
Definition: temperature.h:28
CTemperature(double value, const CTemperatureUnit &unit)
Init by double value.
Definition: temperature.h:25
Specialized class for temperatur units (kelvin, centidegree).
Definition: units.h:681
#define SWIFT_MISC_EXPORT
Export a class or function from the library.