WXP C++ Library Version 6.74.9
Loading...
Searching...
No Matches
MetarFile.h
1#ifndef _WINC_METARFILE
2#define _WINC_METARFILE
3
4#include <WXP/Date.h>
5#include <WXP/File.h>
6#include <WXP/Filename.h>
7#include <WXP/String.h>
8
9namespace WXP {
10 class MetarFile {
11 int type;
12 long pos;
13 bool opened;
14 File file;
15 Date date;
16 char header[80];
17 char cline[80];
18 int ctype;
19
20 public:
21 MetarFile( );
22 MetarFile( Filename &filename );
23 ~MetarFile( );
24 int open( Filename &filename );
25 int init();
26 bool isOpen( );
27 int rewind( );
28 int close( );
29 int checkType( char *filename );
30 int getLine( String &str );
31 char *getHeader();
32
33 static const int UNK = 0;
34 static const int METAR = 1;
35 static const int SPECI = 2;
36 };
37}
38#endif
This class stores date and time information.
Definition Date.h:8
This class accesses files.
Definition File.h:15
This class creates filenames.
Definition Filename.h:11
This class reads in raw METAR data.
Definition MetarFile.h:10
int open(Filename &filename)
Definition MetarFile.cc:48
static const int METAR
Definition MetarFile.h:34
char * getHeader()
Definition MetarFile.cc:86
MetarFile()
Definition MetarFile.cc:20
static const int SPECI
Definition MetarFile.h:35
static const int UNK
Definition MetarFile.h:33
int checkType(char *filename)
Definition MetarFile.cc:94
int rewind()
Definition MetarFile.cc:69
int getLine(String &str)
Definition MetarFile.cc:170
int close()
Definition MetarFile.cc:77
bool isOpen()
Definition MetarFile.cc:62
~MetarFile()
Definition MetarFile.cc:36
This is a variable length string class.
Definition String.h:5
All WXP classes fall under the WXP namespace.
Definition Angle.h:4