WXP C++ Library Version 6.74.6
Loading...
Searching...
No Matches
HurPos.h
1#ifndef _WINC_HURPOS
2#define _WINC_HURPOS
3
4#include <WXP/Date.h>
5
6namespace WXP {
7 class HurPos {
8 int locate;
9 char name[20];
10 char num[10];
11 Date date;
12 float lat, lon;
13 float wind;
14 float pres;
15 int level;
16 int type;
17
18 public:
19
20 enum Loc {
21 NONE,
22 ATL,
23 EPA,
24 CPA,
25 WPA,
26 SPA,
27 NIO,
28 SIO
29 };
30
31 enum StormLevel {
32 UNK,
33 WAVE,
34 DEPRESS,
35 STORM,
36 STORM1,
37 STORM2,
38 STORM3,
39 STORM4,
40 STORM4S,
41 STORM5
42 };
43
44 enum StormType {
45 TROP,
46 POSTTROP,
47 SUBTROP,
48 EXTRATROP
49 };
50
51 HurPos();
52 int init();
53 int getSeason();
54 inline int getLevel(){ return getLevel( wind ); };
55 inline const char *getType(){ return getType( type, level ); };
56 int print();
57
58 static int getLevel( float spd );
59 static const char *getLoc( int locate );
60 static const char *getLocAbbr( int locate );
61 static const char *getType( int type, int level );
62 static int getType( const char *str );
63 static const char *getTypeAbbr( int type );
64 static const char *getLevelAbbr( int type );
65 static const char*getLabel( int locate, int type, int level );
66
67 friend class HurData;
68 friend class HurFore;
69 friend class HurFile;
70 friend class HurWxpFile;
71 friend class HurStorm;
72 friend class HurStorms;
73 friend class HurPlot;
74 };
75
76}
77#endif
This class stores date and time information.
Definition: Date.h:8
This struct has data for a single hurricane advisory.
Definition: HurData.h:8
This class decode hurricane advisories.
Definition: HurFile.h:10
This class plots severe weather warn boxes.
Definition: HurPlot.h:16
This struct has data for a hurricane position.
Definition: HurPos.h:7
This struct has data for a single tropical system containing several advisories.
Definition: HurStorm.h:9
This class creates an array a hurricane storms.
Definition: HurStorms.h:8
This class decode hurricane advisories.
Definition: HurWxpFile.h:9
All WXP classes fall under the WXP namespace.
Definition: Angle.h:4
This struct has data for a single advisory containing observation and forecast.
Definition: HurFore.h:7