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