WXP C++ Library Version 6.74.6
Loading...
Searching...
No Matches
Public Types | Public Member Functions | List of all members
WXP::GiniFile Class Reference

This class reads satellite imagery in GINI format. More...

#include "../include/GiniFile.h"

Public Types

enum  Type { UNK , GINI , GINIZ , GINIP }
 

Public Member Functions

 GiniFile ()
 
 GiniFile (const char *filename, int rtype)
 
 ~GiniFile ()
 
int init ()
 
int open (const char *filename, int rtype)
 
int open (const char *filename, int raccess, int rtype)
 
bool isOpen ()
 
int rewind ()
 
int close ()
 
int getHeader (Image &data)
 
int read (Image &data)
 
int readHeader (Image &data)
 
int readData (Image &data)
 
int write (Image &data)
 
int writeHeader (Image &data)
 
int writeData (Image &data)
 

Detailed Description

This class reads satellite imagery in GINI format.

Author
Dan Vietor

Constructor & Destructor Documentation

◆ GiniFile() [1/2]

GiniFile::GiniFile ( )

Constructor. Initializes the class

References init().

◆ GiniFile() [2/2]

GiniFile::GiniFile ( const char *  filename,
int  rtype 
)

Constructor. Opens the GINI file

Parameters
filenameFile to open
rtypeType of GINI file (GINI, GINIZ)

References init(), and open().

◆ ~GiniFile()

GiniFile::~GiniFile ( )

Destructor

References close().

Member Function Documentation

◆ close()

int GiniFile::close ( )

Closes the file

References WXP::File::close().

Referenced by WXP::ImageFile::close(), readHeader(), and ~GiniFile().

◆ init()

int GiniFile::init ( )

Initializes the class data

References WXP::Buffer::init(), and WXP::FileAttr::READ.

Referenced by GiniFile().

◆ isOpen()

bool GiniFile::isOpen ( )

Is file open

Returns
True if open

Referenced by WXP::ImageFile::open().

◆ open()

int GiniFile::open ( const char *  filename,
int  rtype 
)

Opens a satellite image file

Parameters
filenameFile to open
rtypeType of GINI file (GINI, GINIZ)

References WXP::File::isOpen(), and WXP::File::open().

Referenced by GiniFile(), WXP::ImageFile::open(), and WXP::SatFile::open().

◆ read()

int GiniFile::read ( Image image)

Reads in a GINI formatted image file

Return values
imageImage class to put satellite image

References WXP::File::isOpen(), readData(), and readHeader().

Referenced by WXP::SatFile::read(), and WXP::ImageFile::read().

◆ readData()

int GiniFile::readData ( Image image)

◆ readHeader()

int GiniFile::readHeader ( Image image)

◆ rewind()

int GiniFile::rewind ( )

Rewinds the file

References WXP::File::rewind(), and WXP::File::skipLine().

◆ write()

int GiniFile::write ( Image image)

Writes in a GINI formatted image file

Return values
imageImage class to put satellite image

References WXP::File::isOpen().

Referenced by WXP::ImageFile::write().


The documentation for this class was generated from the following files: