WXP C++ Library Version 6.74.6
Loading...
Searching...
No Matches
HurStorm.h
1#ifndef _WINC_HURSTORM
2#define _WINC_HURSTORM
3
4#include <WXP/EarthPoint.h>
5#include <WXP/HurData.h>
6#include <WXP/HurPos.h>
7
8namespace WXP {
9 class HurStorm {
10 char name[20];
11 int locate;
12 int type; // Overall storm type
13 int level; // Overall storm level
14 HurPos adv[200];
15 int num_adv;
16 static const int max_adv = 200;
17 HurPos fore[10];
18 int num_fore;
19 char disc_file[120];
20 int disc_beg;
21 int disc_end;
22 char fore_file[120];
23 int fore_beg;
24 int fore_end;
25
26 public:
27 HurStorm();
28 int init();
29 inline const char* getName(){ return name; };
30 int setName(const char *rname);
31 inline int setLoc(int val){ locate = val; return 1; };
32 inline const char* getLoc(){ return HurPos::getLoc(locate); };
33 inline int getLocation(){ return locate; };
34 inline int getDate( Date &rdate ){ rdate = adv[0].date; return 1; };
35 inline int getSeason(){ return adv[0].getSeason(); };
36 const char *getStartDate();
37 const char *getEndDate();
38 float getMaxWind();
39 float getLastWind();
40 float getMinPres();
41 float getLastPres();
42 inline int getNumAdv(){ return num_adv; };
43 int getLevel( int ind );
44 const char *getLastType();
45 const char *getMaxType();
46 const char *getType( int ind );
47 int getPosition( int ind, EarthPoint &ept );
48 inline int getNumFore(){ return num_fore; };
49 int getForeLevel( int ind );
50 int getForePosition( int ind, EarthPoint &ept );
51 int update( HurData &rfore );
52 inline int clear(){ init(); return 1; };
53 int sort();
54 int print();
55 int printTable();
56 int printAll();
57
58 friend class HurStorms;
59 friend class HurWxpFile;
60 };
61}
62#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 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 defines earth point values (lat, lon, elev)
Definition: EarthPoint.h:5