WXP C++ Library Version 6.74.9
Loading...
Searching...
No Matches
Vtec.h
1#ifndef _WINC_VTEC
2#define _WINC_VTEC
3
4#include <WXP/Date.h>
5
6namespace WXP {
7 class Vtec {
8 int pclass;
9 int action;
10 char id[5];
11 char type[3];
12 int sig;
13 int num;
14 Date bdate;
15 Date edate;
16
17 public:
18 Vtec();
19 Vtec( const char *str );
20 int init();
21 int decode( const char *str );
22 int set( const char *str );
23 inline int getClass(){ return pclass; };
24 inline int getAction(){ return action; };
25 inline const char *getId(){ return id; };
26 inline const char *getType(){ return type; };
27 inline int getSignificance(){ return sig; };
28 inline int getNumber(){ return num; };
29 inline int getBegDate( Date &rdate ){ rdate = bdate; return 1; };
30 inline int getBegSecs(){ return bdate.getSeconds(); };
31 inline int getEndDate( Date &rdate ){ rdate = edate; return 1; };
32 inline int getEndSecs(){ return edate.getSeconds(); };
33 int print();
34
35 enum Class {
36 OPERATIONAL,
37 TEST,
38 EXP_PROD,
39 EXP_VTEC
40 };
41
42 enum Action {
43 NEW,
44 CONTINUED,
45 EXTENDED_TIME,
46 EXTENDED_AREA,
47 EXTENDED_BOTH,
48 UPGRADED,
49 CANCELED,
50 EXPIRED,
51 CORRECTION,
52 ROUTINE
53 };
54
55 enum Sig {
56 WARNING,
57 WATCH,
58 ADVISORY,
59 STATEMENT,
60 FORECAST,
61 OUTLOOK,
62 SYNOPSIS
63 };
64
65 static const char *getClassString( int ind );
66 static const char *getActionString( int ind );
67 static const char *getPhenomString( const char *type );
68 static const char *getSigString( int ind );
69
70 };
71}
72#endif
This class stores date and time information.
Definition Date.h:8
int getSeconds()
Definition Date.cc:363
This class contains VTEC data.
Definition Vtec.h:7
int print()
Definition Vtec.cc:137
int set(const char *str)
Definition Vtec.cc:53
Vtec()
Definition Vtec.cc:21
int init()
Definition Vtec.cc:37
int decode(const char *str)
Definition Vtec.cc:61
All WXP classes fall under the WXP namespace.
Definition Angle.h:4