WXP::GiniFile Class Reference

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

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

List of all members.

Public Types

enum  Type { UNK, GINI, GINIZ }

Public Member Functions

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

Detailed Description

This class reads satellite imagery in GINI format.

Author:
Dan Vietor

Constructor & Destructor Documentation

GiniFile::GiniFile (  ) 

Constructor. Initializes the class

References init().

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

Constructor. Opens the GINI file

Parameters:
filename File to open
rtype Type of GINI file (GINI, GINIZ)

References init(), and open().

GiniFile::~GiniFile (  ) 

Destructor

References close().


Member Function Documentation

int GiniFile::close (  ) 

Closes the file

References WXP::File::close().

Referenced by readHeader(), and ~GiniFile().

int GiniFile::init (  ) 

Initializes the class data

References WXP::Buffer::init().

Referenced by GiniFile().

bool GiniFile::isOpen (  ) 

Is file open

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

Opens a satellite image file

Parameters:
filename File to open
rtype Type of GINI file (GINI, GINIZ)

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

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

int GiniFile::read ( Image image  ) 

Reads in a GINI formatted image file

Return values:
image Image class to put satellite image

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

Referenced by WXP::SatFile::read().

int GiniFile::readData ( Image image  ) 
int GiniFile::readHeader ( Image image  ) 
int GiniFile::rewind (  ) 

Rewinds the file

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


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

Generated on 8 Jan 2010 for WXP C++ Library by  doxygen 1.6.1