WXP C++ Library Version 6.74.9
Loading...
Searching...
No Matches
ImgWxpFile.h
1#ifndef _WINC_IMGWXPFILE
2#define _WINC_IMGWXPFILE
3
4#include <WXP/Date.h>
5#include <WXP/File.h>
6#include <WXP/Image.h>
7
8namespace WXP {
9 class ImgWxpFile {
10 int type;
11 int dtype;
12 int ver;
13 int access;
14 File file;
15 Date date;
16 bool opened;
17
18 public:
19 enum Type {
23 };
24
25 ImgWxpFile();
26 int setVer( int v );
27 int open( const char *filename, int raccess, int rtype );
28 int open( const char *filename, int raccess );
29 int open( const char *filename );
30 bool isOpen();
31 int close();
32 int read( Image &image );
33 int readHeader( Image &image );
34 int readData( Image &image );
35 int read( const char *filename, Image &image );
36 int write( Image &image );
37 int write( const char *filename, int rtype, Image &image );
38 };
39}
40#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 and writes image files.
Definition ImgWxpFile.h:9
int readData(Image &image)
Definition ImgWxpFile.cc:264
ImgWxpFile()
Definition ImgWxpFile.cc:30
int open(const char *filename, int raccess, int rtype)
Definition ImgWxpFile.cc:50
Type
Definition ImgWxpFile.h:19
@ UNK
Definition ImgWxpFile.h:20
@ IMG
Definition ImgWxpFile.h:21
@ IMGZ
Definition ImgWxpFile.h:22
bool isOpen()
Definition ImgWxpFile.cc:100
int setVer(int v)
Definition ImgWxpFile.cc:39
int readHeader(Image &image)
Definition ImgWxpFile.cc:143
int read(Image &image)
Definition ImgWxpFile.cc:129
int write(Image &image)
Definition ImgWxpFile.cc:363
int close()
Definition ImgWxpFile.cc:107
All WXP classes fall under the WXP namespace.
Definition Angle.h:4