WXP C++ Library Version 6.74.9
Loading...
Searching...
No Matches
HurFile.h
1#ifndef _WINC_HURFILE
2#define _WINC_HURFILE
3
4#include <WXP/Date.h>
5#include <WXP/File.h>
6#include <WXP/Filename.h>
7#include <WXP/HurData.h>
8
9namespace WXP {
10 class HurFile {
11 File ifile;
12 Date date;
13 int header;
14 char wmo[20];
15 int locate;
16
17 public:
18 HurFile();
19 int init();
20 int open( const char *file );
21 int open( Filename &file );
22 inline bool isOpen(){ return ifile.isOpen(); };
23 int close();
24 inline int setDate( Date &rdate ){ date = rdate; return 1; };
25 int read( HurData &data );
26 int getStorm();
27 int nextWord( char *str );
28 int nextNumber( char *str );
29 int parseAdvisory( HurData &data );
30 int parseForecast( HurData &data );
31 int parseDiscussion( HurData &data );
32 int parseWarning( HurData &data );
33 int cleanNum( char *str );
34 int getOff( char *str );
35
36 };
37}
38#endif
This class stores date and time information.
Definition Date.h:8
This class accesses files.
Definition File.h:15
bool isOpen()
Definition File.cc:273
This class creates filenames.
Definition Filename.h:11
This struct has data for a single hurricane advisory.
Definition HurData.h:8
This class decode hurricane advisories.
Definition HurFile.h:10
HurFile()
Definition HurFile.cc:25
int init()
Definition HurFile.cc:32
All WXP classes fall under the WXP namespace.
Definition Angle.h:4