-
Notifications
You must be signed in to change notification settings - Fork 0
/
weatherdata.h
80 lines (59 loc) · 2.5 KB
/
weatherdata.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
#pragma once
//*****************************************************************************
class CWeatherData
{
public:
CWeatherData(void);
virtual ~CWeatherData(void);
float GetTemperature(void) const {return m_fTemp;}
void SetTemperature(const float fTemp);
float GetPressure(void) const {return m_fPressure;}
void SetPressure(const float fPressure) {m_fPressure = fPressure;}
float GetHumidity(void) const {return m_fHumidity;}
void SetHumidity(const float fHumidity);
float GetWindSpeed(void) const {return m_fWindSpeed;}
void SetWindSpeed(const float fWindSpeed) {m_fWindSpeed = fWindSpeed;}
float GetWindGust(void) const {return m_fWindGust;}
void SetWindGust(const float fWindGust);
float GetWindDirection(void) const {return m_fWindDir;}
void SetWindDirection(const float fWindDir) {m_fWindDir = fWindDir;}
float GetRainMinute(void) const {return m_fRainMinute;}
void SetRainMinute(const float fRainMinute) {m_fRainMinute = fRainMinute;}
float GetRainHour(void) const {return m_fRainHour;}
void SetRainHour(const float fRainHour) {m_fRainHour = fRainHour;}
float GetRainDay(void) const {return m_fRainDay;}
void SetRainDay(const float fRainDay) {m_fRainDay = fRainDay;}
float GetRainMonth(void) const {return m_fRainMonth;}
void SetRainMonth(const float fRainMonth) {m_fRainMonth = fRainMonth;}
float GetRainSeason(void) const {return m_fRainSeason;}
void SetRainSeason(const float fRainSeason) {m_fRainSeason = fRainSeason;}
float GetDewPoint(void) const;
bool IsValidDailyHighTemperature(void) const;
float GetDailyHighTemperature(void) const {return m_fTempDailyHigh;}
bool IsValidDailyLowTemperature(void) const;
float GetDailyLowTemperature(void) const {return m_fTempDailyLow;}
bool IsValidDailyHighHumidity(void) const;
float GetDailyHighHumidity(void) const {return m_fHumidityDailyHigh;}
bool IsValidDailyLowHumidity(void) const;
float GetDailyLowHumidity(void) const {return m_fHumidityDailyLow;}
bool IsValidDailyHighWindGust(void) const;
float GetDailyHighWindGust(void) const {return m_fWindGustDailyHigh;}
void ResetDailyValues(void);
protected:
float m_fTemp;
float m_fPressure;
float m_fHumidity;
float m_fWindSpeed;
float m_fWindGust;
float m_fWindDir;
float m_fRainMinute;
float m_fRainHour;
float m_fRainDay;
float m_fRainMonth;
float m_fRainSeason;
float m_fTempDailyHigh;
float m_fTempDailyLow;
float m_fHumidityDailyHigh;
float m_fHumidityDailyLow;
float m_fWindGustDailyHigh;
};