1#ifndef _WINC_SFCWMODATA
2#define _WINC_SFCWMODATA
23 inline int setId(
const char *rid ){
StrLib::copy(
id, 11, rid );
return 1; }
24 inline const char *getId(){
return id; }
26 inline int setData(
const char *rdata ){
28 inline const char *getData(){
return data; }
30 inline int setDate(
Date &rdate ){ date = rdate;
return 1; }
31 int getDate(
Date &rdate );
32 inline Date getDate(){
return date; }
34 inline int setProdDay(
int rpday ){ pday = rpday;
return 1; }
35 inline int getProdDay(){
return pday; }
37 inline int setProdHour(
int rphour ){ phour = rphour;
return 1; }
38 inline int getProdHour(){
return phour; }
40 inline int setProdMinute(
int rpmin ){ pmin = rpmin;
return 1; }
41 inline int getProdMinute(){
return pmin; }
43 inline int setFormat(
int rformat ){ format = rformat;
return 1; }
44 inline int getFormat(){
return format; }
46 inline int setLocation(
int rloc ){ location = rloc;
return 1; }
47 inline int getLocation(){
return location; }
49 inline int setWmo(
const char *rwmo ){
51 inline const char *getWmo(){
return wmo; }
53 inline bool isMETAR(){
return format >= METAR && format <= SPECI ? true :
false; };
54 inline bool isSA(){
return format >= SA && format <= SP ? true :
false; };
55 inline bool isSYNOP(){
return format >= SYNOP && format <= CMAN ? true :
false; };
56 inline bool isSPEC(){
return format == SPECI || format == SP ? true :
false; };
65 static inline bool isTypeMETAR(
int type ){
return type >= METAR && type <= SPECI ? true :
false; };
66 static inline bool isTypeSA(
int type ){
return type >= SA && type <= SP ? true :
false; };
67 static inline bool isTypeSYNOP(
int type ){
return type >= SYNOP && type <= CMAN ? true :
false; };
68 static inline bool isTypeSPEC(
int type ){
return type == SPECI || type == SP ? true :
false; };
This class stores date and time information.
Definition Date.h:8
This class decodes METAR, SAO and SYNOP data files.
Definition SfcDecode.h:11
This class hold information about raw surface reports (METAR, SAO).
Definition SfcWmoData.h:8
This class reads in surface data from a input raw data file from file.
Definition SfcWmoFile.h:10
static int copy(char *s1, int len1, const char s2)
Definition StrLib.cc:506
All WXP classes fall under the WXP namespace.
Definition Angle.h:4