00001
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025 #ifndef _FahrenheitTemperature_cc
00026 #define _FahrenheitTemperature_cc
00027
00028 #include "Quantity/Variable.h"
00029
00030 #include "PhysicalQuantities/FahrenheitTemperature.h"
00031 #include "PhysicalQuantities/ThermodynamicTemperature.h"
00032 #include "PhysicalQuantities/CelsiusTemperature.h"
00033
00034 namespace quantity {
00035 namespace fahrenheitTemperature {
00036
00037
00038
00039
00040 template<> const std::string DegreeFahrenheit::Namestring
00041 = "degreefahrenheit";
00042 template<> const std::string DegreeFahrenheit::Symbolstring = "oF";
00043 template<> const bool DegreeFahrenheit::SI = false;
00044
00045 template<> const double Standard<DegreeFahrenheit>::ratio = 1.0;
00046 template<> const bool Standard<DegreeFahrenheit>::exact = true;
00047
00048 }
00049
00050 template<> const std::string
00051 Name<fahrenheitTemperature::Quantity>::String = "temperature";
00052 template<> const std::string
00053 Symbol<fahrenheitTemperature::Quantity>::String = "Thetaf";
00054
00056
00058 template<>
00059 FahrenheitTemperature::Variable (const ThermodynamicTemperature &temp)
00060 : variable_value (Reverse<Unit>::VAL
00061 ((9./5. * temp.value ()) - 459.67))
00062 {namestring = temp.name ();}
00063
00065
00067 template<>
00068 FahrenheitTemperature::Variable (const CelsiusTemperature &celsius)
00069 : variable_value (Reverse<Unit>::VAL
00070 ((9./5. * celsius.value ()) + 32.))
00071 {namestring = celsius.name ();}
00072
00073 }
00074
00075 #endif