/****************************************************************************/
#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 */
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);
};
-inline FGTemperatureItem& FGTemperatureItem::operator*= (const WeatherPrecition& arg)
+inline FGTemperatureItem& FGTemperatureItem::operator*= (const WeatherPrecision& arg)
{
value *= arg;
return *this;