WXP C++ Library Version 6.74.9
Loading...
Searching...
No Matches
MdrFile.h
1#ifndef _WINC_MDRFILE
2#define _WINC_MDRFILE
3
4#include <WXP/Date.h>
5#include <WXP/File.h>
6#include <WXP/Filename.h>
7#include <WXP/MdrData.h>
8#include <WXP/MdrRawData.h>
9#include <WXP/MdrWxpFile.h>
10
11namespace WXP {
12 class MdrFile {
13 int type;
14 int access;
15 File file;
16 Date date;
17 Date pdate;
18 MdrWxpFile wxp;
19 bool opened;
20
21 public:
22 MdrFile();
23 MdrFile( Filename &filename );
24 MdrFile( const char *filename );
25 ~MdrFile();
26 int init();
27 inline bool isOpen(){ return opened; };
28 int open( const char *filename, int raccess, int rtype );
29 int open( const char *filename );
30 int open( Filename &filename, int raccess, int rtype );
31 int open( Filename &filename );
32 int rewind();
33 int close();
34 int setDate( Date &rdate );
35 inline int getDate( Date &rdate ){ rdate = date; return 1; };
36 int decode( MdrRawData &raw, MdrData &data );
37 int read( Image &image );
38 int read( MdrRawData &data );
39 int read( MdrData &data );
40 int write( Image &image );
41 int write( MdrData &data );
42 // MDR types
43 enum Type {
44 UNK,
45 RAW,
46 WXP,
47 NETCDF
48 };
49 };
50}
51#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 defines an image.
Definition Image.h:19
This class manages MDR (Manually Digitized Radar Messages) data.
Definition MdrData.h:11
This class reads in MDR (Manually Digitized Radar Messages) data.
Definition MdrFile.h:12
This class reads in decoded MDR radar files.
Definition MdrWxpFile.h:11
All WXP classes fall under the WXP namespace.
Definition Angle.h:4
This struct stores raw MDR reports.
Definition MdrRawData.h:5