WXP C++ Library Version 6.74.9
Loading...
Searching...
No Matches
GiniFile.h
1#ifndef _WINC_GINIFILE
2#define _WINC_GINIFILE
3
4#include <WXP/Date.h>
5#include <WXP/File.h>
6#include <WXP/Image.h>
7#include <WXP/Zlib.h>
8
9namespace WXP {
10 class GiniFile {
11 int ver;
12 int type;
13 int access;
14 File file;
15 bool opened;
16 Date date;
17 Zlib zs;
18 Buffer in;
19 Buffer buf;
20
21 public:
22 GiniFile();
23 GiniFile( const char *filename, int rtype );
24 ~GiniFile();
25 int init();
26 int open( const char *filename, int rtype );
27 int open( const char *filename, int raccess, int rtype );
28 bool isOpen();
29 int rewind();
30 int close();
31 int getHeader( Image &data );
32 int read( Image &data );
33 int readHeader( Image &data );
34 int readData( Image &data );
35 int write( Image &data );
36 int writeHeader( Image &data );
37 int writeData( Image &data );
38 /*
39 Satellite types
40 */
41 enum Type {
42 UNK,
43 GINI,
44 GINIZ,
45 GINIP
46 };
47 };
48}
49#endif
This class creates a generic buffer for data.
Definition Buffer.h:5
This class stores date and time information.
Definition Date.h:8
This class accesses files.
Definition File.h:15
This class reads satellite imagery in GINI format.
Definition GiniFile.h:10
int close()
Definition GiniFile.cc:117
int read(Image &data)
Definition GiniFile.cc:126
bool isOpen()
Definition GiniFile.cc:100
int init()
Definition GiniFile.cc:35
int open(const char *filename, int rtype)
Definition GiniFile.cc:73
~GiniFile()
Definition GiniFile.cc:64
GiniFile()
Definition GiniFile.cc:47
int readHeader(Image &data)
Definition GiniFile.cc:140
int write(Image &data)
Definition GiniFile.cc:733
int rewind()
Definition GiniFile.cc:107
int readData(Image &data)
Definition GiniFile.cc:572
This class defines an image.
Definition Image.h:19
This class manages zlib decompression.
Definition Zlib.h:9
All WXP classes fall under the WXP namespace.
Definition Angle.h:4