WXP C++ Library Version 6.74.9
Loading...
Searching...
No Matches
GridWxpFile.h
1#ifndef _WINC_GRIDWXPFILE
2#define _WINC_GRIDWXPFILE
3
4#include <WXP/Date.h>
5#include <WXP/File.h>
6#include <WXP/Grid.h>
7
8namespace WXP {
9 class GridWxpFile {
10 File file; /* The grid files */
11 int access;
12 Date date; /* The date time information */
13 int ver; /* The version of grid file */
14 int type; /* The type of grid file */
15 char format[15];
16 bool opened;
17
18 public:
19 enum Type {
20 UNK,
21 WXP,
22 WXPB,
23 WXPO };
24
26 GridWxpFile( const char *filename );
27 GridWxpFile( const char *filename, int access, int type);
29
30 int init();
31 int open( const char *filename, int access, int type);
32 int open( const char *filename );
33 int setVer( int v );
34 bool isOpen();
35 int close();
36 int setFormat( const char *rform );
37 int read( Grid &grid );
38 int read( const char *filename, int type, Grid &grid );
39 int readHdr( Grid &grid );
40 int readData( Grid &grid );
41 int write( Grid &grid );
42 int write( const char *filename, int type, Grid &grid );
43 };
44}
45#endif
This class stores date and time information.
Definition Date.h:8
This class accesses files.
Definition File.h:15
This class opens and reads grid file data.
Definition GridWxpFile.h:9
int open(const char *filename, int access, int type)
Definition GridWxpFile.cc:81
~GridWxpFile()
Definition GridWxpFile.cc:66
GridWxpFile()
Definition GridWxpFile.cc:39
int read(Grid &grid)
Definition GridWxpFile.cc:139
int close()
Definition GridWxpFile.cc:123
bool isOpen()
Definition GridWxpFile.cc:116
This class defines a grid.
Definition Grid.h:20
All WXP classes fall under the WXP namespace.
Definition Angle.h:4