]> git.mxchange.org Git - flightgear.git/blobdiff - src/WeatherCM/FGVaporPressureItem.h
Moved JSBSim.hxx to src/FDM/JSBSim/
[flightgear.git] / src / WeatherCM / FGVaporPressureItem.h
index ca3b9adf3fcfc5d8b3326cd3b5f537bb9c0b239e..b04c80b90f04d343d2bf02a49911d4d16432ea00 100644 (file)
@@ -32,6 +32,9 @@ HISTORY
 28.05.1999 Christian Mayer     Created
 16.06.1999 Durk Talsma         Portability for Linux
 20.06.1999 Christian Mayer     added lots of consts
+10.10.1999 Christian Mayer     added mutable for gcc 2.95 portability
+11.10.1999 Christian Mayer     changed set<> to map<> on Bernie Bright's 
+                               suggestion
 *****************************************************************************/
 
 /****************************************************************************/
@@ -44,6 +47,9 @@ HISTORY
 /* INCLUDES                                                                */
 /****************************************************************************/
 #include "FGWeatherDefs.h"
+
+//for the case that mutable isn't supported:
+#include <simgear/compiler.h>
                
 /****************************************************************************/
 /* DEFINES                                                                 */
@@ -57,20 +63,20 @@ FGVaporPressureItem operator-(const FGVaporPressureItem& arg);
 class FGVaporPressureItem
 {
 private:
-    WeatherPrecition value;
-    WeatherPrecition alt;
+    mutable WeatherPrecision value;
+    WeatherPrecision alt;
 
 protected:
 public:
 
-    FGVaporPressureItem(const WeatherPrecition& a, const WeatherPrecition& v)  {alt = a; value = v;}
-    FGVaporPressureItem(const WeatherPrecition& v)                             {alt = 0.0; value = v;}
+    FGVaporPressureItem(const WeatherPrecision& a, const WeatherPrecision& v)  {alt = a; value = v;}
+    FGVaporPressureItem(const WeatherPrecision& v)                             {alt = 0.0; value = v;}
     FGVaporPressureItem()                                                      {alt = 0.0; value = FG_WEATHER_DEFAULT_VAPORPRESSURE;}
 
-    WeatherPrecition getValue() const { return value; };
-    WeatherPrecition getAlt()   const { return alt;   };
+    WeatherPrecision getValue() const { return value; };
+    WeatherPrecision getAlt()   const { return alt;   };
 
-    FGVaporPressureItem& operator*= (const WeatherPrecition& arg);
+    FGVaporPressureItem& operator*= (const WeatherPrecision& arg);
     FGVaporPressureItem& operator+= (const FGVaporPressureItem& arg);
     FGVaporPressureItem& operator-= (const FGVaporPressureItem& arg);
 
@@ -79,7 +85,7 @@ public:
 
 };
 
-inline FGVaporPressureItem& FGVaporPressureItem::operator*= (const WeatherPrecition& arg)
+inline FGVaporPressureItem& FGVaporPressureItem::operator*= (const WeatherPrecision& arg)
 {
   value *= arg;
   return *this;