WXP C++ Library Version 6.74.9
Loading...
Searching...
No Matches
ProfFile.h
1#ifndef _WINC_PROFFILE
2#define _WINC_PROFFILE
3
4#include <WXP/BufrFile.h>
5#include <WXP/NetCdfFile.h>
6#include <WXP/Date.h>
7#include <WXP/File.h>
8#include <WXP/Filename.h>
9#include <WXP/ProfData.h>
10
11namespace WXP {
12 /*
13 Product description information
14 */
15 class ProfFile {
16 int type;
17 bool opened;
18 Date date; // File date
19 NetCdfFile cdf;
20 BufrFile bufr;
21 int num;
22
23 float dh; // distance between levels
24
25 public:
26 ProfFile();
27 ProfFile( const char *filename );
28 ProfFile( Filename &filename );
29 ~ProfFile();
30 int init();
31 int checkType( const char *filename );
32 int open( const char *filename );
33 int open( Filename &filename );
34 int close();
35 bool isOpen();
36 int setDate( Date &rdate );
37 int read( ProfData &data );
38
39 enum Type {
40 BUFR,
41 NETCDF
42 };
43 };
44}
45#endif
46
This class reads in BUFR data from a file.
Definition BufrFile.h:11
This class stores date and time information.
Definition Date.h:8
This class creates filenames.
Definition Filename.h:11
This class is an access layer to netCDF files.
Definition NetCdfFile.h:11
This struct stores profiler data.
Definition ProfData.h:7
This class reads and decodes profiler.
Definition ProfFile.h:15
~ProfFile()
Definition ProfFile.cc:50
int close()
Definition ProfFile.cc:118
bool isOpen()
Definition ProfFile.cc:111
int open(const char *filename)
Definition ProfFile.cc:81
ProfFile()
Definition ProfFile.cc:22
int setDate(Date &rdate)
Definition ProfFile.cc:129
int read(ProfData &data)
Definition ProfFile.cc:139
int init()
Definition ProfFile.cc:57
int checkType(const char *filename)
Definition ProfFile.cc:66
All WXP classes fall under the WXP namespace.
Definition Angle.h:4