blob: a31a51d0e73135e6864ca271cd3a59f8e88c18e6 (
plain)
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
|
#ifndef __FORECASTS_H
#define __FORECASTS_H
#include <string>
#include <jansson.h>
#include "forecast.h"
using namespace std;
class cForecasts {
private:
eForecastType type;
string summary;
string icon;
int numDataPoints;
int dataPointPointer;
cForecast **dataPoints;
public:
cForecasts(void);
virtual ~cForecasts(void);
void SetForecast(json_t *forecast);
void SetForecastType(eForecastType type) { this->type = type; };
string GetSummary(void) { return summary; };
string GetIcon(void) { return icon; };
int NumHourly(void);
int NumDaily(void);
cForecast *GetForecast(int dataPoint);
cForecast *GetCurrent(void);
cForecast *GetFirstHourly(void);
cForecast *GetFirstDaily(void);
cForecast *GetNext(void);
void Debug(void);
};
#endif //__FORECASTS_H
|