8#ifndef KUNITCONVERSION_UNIT_H
9#define KUNITCONVERSION_UNIT_H
11#include "kunitconversion/kunitconversion_export.h"
13#include <QExplicitlySharedDataPointer>
16namespace KUnitConversion
31 FuelEfficiencyCategory,
33 WeightPerAreaCategory,
39 ThermalConductivityCategory,
43 ThermalGenerationCategory,
47 ElectricalCurrentCategory,
49 ElectricalResistanceCategory,
62 SquareYottameter = 1000,
128 CubicYottameter = 3000,
246 PoundForcePerSquareInch,
248 MillimetersOfMercury,
282 GuidelineDailyAmount,
350 MeterPerSecond = 9000,
420 LitersPer100Kilometers = 12000,
422 MilePerImperialGallon,
426 YottakilogramsPerCubicMeter = 13000,
427 ZettakilogramPerCubicMeter,
428 ExakilogramPerCubicMeter,
429 PetakilogramPerCubicMeter,
430 TerakilogramPerCubicMeter,
431 GigakilogramPerCubicMeter,
432 MegakilogramPerCubicMeter,
433 KilokilogramPerCubicMeter,
434 HectokilogramsPerCubicMeter,
435 DecakilogramsPerCubicMeter,
436 KilogramsPerCubicMeter,
437 DecikilogramsPerCubicMeter,
438 CentikilogramsPerCubicMeter,
439 MillikilogramsPerCubicMeter,
440 MicrokilogramsPerCubicMeter,
441 NanokilogramsPerCubicMeter,
442 PicokilogramsPerCubicMeter,
443 FemtokilogramsPerCubicMeter,
444 AttokilogramsPerCubicMeter,
445 ZeptokilogramsPerCubicMeter,
446 YoctokilogramsPerCubicMeter,
462 MetresPerSecondSquared = 14000,
463 FeetPerSecondSquared,
526 WattPerMeterKelvin = 18000,
528 BtuPerFootHourFahrenheit,
530 BtuPerSquareFootHourFahrenheitPerInch,
534 WattPerSquareMeter = 19000,
536 BtuPerHourPerSquareFoot,
540 WattPerCubicMeter = 20000,
542 BtuPerHourPerCubicFoot,
683 PermeabilitySquareMicrometer,
769class KUNITCONVERSION_EXPORT
Unit
865 qreal toDefault(qreal value)
const;
866 qreal fromDefault(qreal value)
const;
869 friend class UnitPrivate;
870 friend class UnitCategory;
871 friend class UnitCategoryPrivate;
872 friend class CurrencyCategoryPrivate;
874 KUNITCONVERSION_NO_EXPORT
explicit Unit(UnitPrivate *dd);
876 KUNITCONVERSION_NO_EXPORT
void setUnitMultiplier(qreal multiplier);
Class to define a category of units of measurement.
Class to define a unit of measurement.
bool operator==(const Unit &other) const
QString toString(qreal value, int fieldWidth=0, char format='g', int precision=-1, const QChar &fillChar=QLatin1Char(' ')) const
QString toSymbolString(qreal value, int fieldWidth=0, char format='g', int precision=-1, const QChar &fillChar=QLatin1Char(' ')) const
Unit & operator=(const Unit &other)
Assignment operator, assign other to this.
UnitCategory category() const
QString description() const
CategoryId categoryId() const
bool operator!=(const Unit &other) const