Get weather Information
WeatherInfo.h@2:76b812680942, 2015-07-05 (annotated)
- Committer:
- takashikojo
- Date:
- Sun Jul 05 08:11:40 2015 +0000
- Revision:
- 2:76b812680942
- Parent:
- 1:8655f1720450
getInfo from Wether Hacks
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
takashikojo | 0:6d53d6d34ac3 | 1 | #ifndef WEATHERINFO_H |
takashikojo | 0:6d53d6d34ac3 | 2 | #define WEATHERINFO_H |
takashikojo | 0:6d53d6d34ac3 | 3 | |
takashikojo | 0:6d53d6d34ac3 | 4 | enum WeatherInfoSource { |
takashikojo | 0:6d53d6d34ac3 | 5 | WEATHER_HACKS |
takashikojo | 0:6d53d6d34ac3 | 6 | } ; |
takashikojo | 0:6d53d6d34ac3 | 7 | |
takashikojo | 0:6d53d6d34ac3 | 8 | class WeatherInfo { |
takashikojo | 0:6d53d6d34ac3 | 9 | public: |
takashikojo | 0:6d53d6d34ac3 | 10 | WeatherInfo(enum WeatherInfoSource s) ; |
takashikojo | 0:6d53d6d34ac3 | 11 | ~WeatherInfo(); |
takashikojo | 1:8655f1720450 | 12 | void setBuff(char *buff, int size) ; |
takashikojo | 2:76b812680942 | 13 | bool getInfo(char *hiTemp, char *loTemp, char *prec) ; |
takashikojo | 0:6d53d6d34ac3 | 14 | private: |
takashikojo | 0:6d53d6d34ac3 | 15 | enum WeatherInfoSource source ; |
takashikojo | 1:8655f1720450 | 16 | char *recvBuff ; |
takashikojo | 1:8655f1720450 | 17 | int recvSize ; |
takashikojo | 0:6d53d6d34ac3 | 18 | } ; |
takashikojo | 0:6d53d6d34ac3 | 19 | |
takashikojo | 0:6d53d6d34ac3 | 20 | #endif |