WXP C++ Library Version 6.74.9
Loading...
Searching...
No Matches
ImageFile.h
1#ifndef _WINC_IMAGEFILE
2#define _WINC_IMAGEFILE
3
4#include <WXP/Date.h>
5#include <WXP/File.h>
6#include <WXP/GifFile.h>
7#include <WXP/GiniFile.h>
8#include <WXP/Image.h>
9#include <WXP/ImgWxpFile.h>
10#include <WXP/PngFile.h>
11#include <WXP/TiffFile.h>
12
13namespace WXP {
14 class ImageFile {
15 int type;
16 int access;
17 File file;
18 GifFile gif;
19 PngFile png;
20 TiffFile tiff;
21 ImgWxpFile img;
22 GiniFile gini;
23 Date date;
24 bool opened;
25
26 public:
28 enum Type {
35 GINIP
36 };
37
38 ImageFile();
39 int setVer( int v );
40 int open( const char *filename, int raccess, int rtype );
41 int open( const char *filename, int raccess, const char *rtype );
42 int open( const char *filename, int raccess );
43 int open( const char *filename );
45 inline bool isOpen() {return opened;};
46 int close();
47 int getType( const char *str );
48 int read( Image &image );
49 int read( const char *filename, Image &image );
50 int write( Image &image );
51 int write( const char *filename, int rtype, Image &image );
52 int write( const char *filename, Image &image );
53
54 static int checkType( const char *filename );
55 static int checkFilename( const char *filename );
56 };
57}
58#endif
This class stores date and time information.
Definition Date.h:8
This class accesses files.
Definition File.h:15
This class reads and writes GIF files.
Definition GifFile.h:10
This class reads satellite imagery in GINI format.
Definition GiniFile.h:10
This class reads and writes image files.
Definition ImageFile.h:14
int setVer(int v)
Definition ImageFile.cc:65
int write(Image &image)
Definition ImageFile.cc:239
static int checkFilename(const char *filename)
Definition ImageFile.cc:50
int close()
Definition ImageFile.cc:186
int open(const char *filename, int raccess, int rtype)
Definition ImageFile.cc:76
int getType(const char *str)
Definition ImageFile.cc:150
ImageFile()
Definition ImageFile.cc:22
int read(Image &image)
Definition ImageFile.cc:204
bool isOpen()
Definition ImageFile.h:45
Type
Definition ImageFile.h:28
@ TIFF
Definition ImageFile.h:32
@ UNK
Definition ImageFile.h:29
@ PNG
Definition ImageFile.h:34
@ IMG
Definition ImageFile.h:30
@ GIF
Definition ImageFile.h:33
@ GINIP
Definition ImageFile.h:35
@ IMGZ
Definition ImageFile.h:31
static int checkType(const char *filename)
Definition ImageFile.cc:31
This class defines an image.
Definition Image.h:19
This class reads and writes image files.
Definition ImgWxpFile.h:9
This class reads and write PNG image files.
Definition PngFile.h:8
This class reads and writes GIF files.
Definition TiffFile.h:9
All WXP classes fall under the WXP namespace.
Definition Angle.h:4