WXP C++ Library Version 6.74.9
Loading...
Searching...
No Matches
SatUniFile.h
1#ifndef _WINC_SATUNIFILE
2#define _WINC_SATUNIFILE
3
4#include <WXP/Date.h>
5#include <WXP/File.h>
6#include <WXP/Image.h>
7#include <WXP/String.h>
8
9namespace WXP {
10 class SatUniFile {
11 int ver;
12 int type;
13 File file;
14 bool opened;
15 Date date;
16 String domain;
17 String calib;
18 int map;
19 int blkwht;
20
21 public:
22 SatUniFile();
23 SatUniFile( const char *filename, int rtype );
25 int init();
26 int open( const char *filename, int rtype );
27 bool isOpen();
28 int rewind();
29 int close();
30 int getHeader( Image &data );
31 int read( Image &data );
32 int readHeader( Image &data );
33 int readData( Image &data );
34 inline int setMapRemove( int val ){ map = val; return 1; };
35 inline int setBlackWhite( int val ){ blkwht = val; return 1; };
36 inline int setDomain( const char *str ){ domain.set( str ); return 1; };
37 int setCalibration( const char *str );
38 /*
39 Satellite types
40 */
41 enum Type {
42 UNK,
43 UNISYS,
44 };
45 };
46}
47#endif
This class stores date and time information.
Definition Date.h:8
This class accesses files.
Definition File.h:15
This class defines an image.
Definition Image.h:19
This class reads satellite imagery in Unisys format.
Definition SatUniFile.h:10
int readHeader(Image &data)
Definition SatUniFile.cc:129
int close()
Definition SatUniFile.cc:106
int rewind()
Definition SatUniFile.cc:96
int read(Image &data)
Definition SatUniFile.cc:115
bool isOpen()
Definition SatUniFile.cc:89
int open(const char *filename, int rtype)
Definition SatUniFile.cc:69
~SatUniFile()
Definition SatUniFile.cc:60
int init()
Definition SatUniFile.cc:30
SatUniFile()
Definition SatUniFile.cc:43
int readData(Image &data)
Definition SatUniFile.cc:287
This is a variable length string class.
Definition String.h:5
int set(const char *str)
Definition String.cc:96
All WXP classes fall under the WXP namespace.
Definition Angle.h:4