]> git.mxchange.org Git - flightgear.git/blobdiff - src/WeatherCM/FGTemperatureItem.h
Erik Hofman:
[flightgear.git] / src / WeatherCM / FGTemperatureItem.h
index 063acbf1fb9b75cc287bd21931ece05140fba88b..f6cc5e04eb865fa4e5b6b93a90f0ff622a7d473e 100644 (file)
@@ -48,8 +48,8 @@ HISTORY
 /****************************************************************************/
 #include "FGWeatherDefs.h"
 
-//for the case that mutable isn't supported:
-#include "Include/compiler.h"
+// for the case that mutable isn't supported:
+#include <simgear/compiler.h>
                
 /****************************************************************************/
 /* DEFINES                                                                 */
@@ -63,20 +63,23 @@ FGTemperatureItem operator-(const FGTemperatureItem& arg);
 class FGTemperatureItem
 {
 private:
-    mutable WeatherPrecition value;
-    WeatherPrecition alt;
+    mutable WeatherPrecision value;
+    WeatherPrecision alt;
 
 protected:
 public:
 
-    FGTemperatureItem(const WeatherPrecition& a, const WeatherPrecition& v) {alt = a; value = v;}
-    FGTemperatureItem(const WeatherPrecition& v)                           {alt = 0.0; value = v;}
-    FGTemperatureItem()                                                            {alt = 0.0; value = (WeatherPrecition)FG_WEATHER_DEFAULT_TEMPERATURE;}
+    FGTemperatureItem(const WeatherPrecision& a, const WeatherPrecision& v) {alt = a; value = v;}
+    FGTemperatureItem(const WeatherPrecision& v)                           {alt = 0.0; value = v;}
+    FGTemperatureItem()                                                            {alt = 0.0; value = (WeatherPrecision)FG_WEATHER_DEFAULT_TEMPERATURE;}
 
-    WeatherPrecition getValue() const { return value; };
-    WeatherPrecition getAlt()   const { return alt;   };  
+    WeatherPrecision getValue() const { return value; };
+    WeatherPrecision getAlt()   const { return alt;   };  
 
-    FGTemperatureItem& operator*= (const WeatherPrecition& arg);
+    void setAlt  (WeatherPrecision x) { alt   = x; }
+    void setValue(WeatherPrecision x) { value = x; }
+
+    FGTemperatureItem& operator*= (const WeatherPrecision& arg);
     FGTemperatureItem& operator+= (const FGTemperatureItem& arg);
     FGTemperatureItem& operator-= (const FGTemperatureItem& arg);
 
@@ -85,7 +88,7 @@ public:
     
 };
 
-inline FGTemperatureItem& FGTemperatureItem::operator*= (const WeatherPrecition& arg)
+inline FGTemperatureItem& FGTemperatureItem::operator*= (const WeatherPrecision& arg)
 {
   value *= arg;
   return *this;