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