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; };
61 friend class SfcWmoFile;
62 friend class MetarTool;
63 friend class SfcDecode;
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; };