Main Page | Modules | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages

OmgClimateImporter Class Reference
[Library]

#include <omgclimateimporter.h>

Inheritance diagram for OmgClimateImporter:

Inheritance graph
[legend]
Collaboration diagram for OmgClimateImporter:

Collaboration graph
[legend]
List of all members.

Detailed Description

This is a utilitiy for importing climate data such as Hadley, CRU etc.

Definition at line 31 of file omgclimateimporter.h.

Public Slots

void propogateError (QString theError)
void propogateMessage (QString theMessage)

Signals

void error (QString theError)
void message (QString theMessage)
void updateProgress (int theProgress, int theMaximum)

Public Member Functions

 OmgClimateImporter ()
 ~OmgClimateImporter ()
QStringList import (QString theInputFile, QString theOutputDir, QString theFileType)


Constructor & Destructor Documentation

OmgClimateImporter::OmgClimateImporter  ) 
 

Definition at line 32 of file omgclimateimporter.cpp.

OmgClimateImporter::~OmgClimateImporter  ) 
 

Definition at line 35 of file omgclimateimporter.cpp.


Member Function Documentation

void OmgClimateImporter::error QString  theError  )  [signal]
 

Referenced by import(), and propogateError().

QStringList OmgClimateImporter::import QString  theInputFile,
QString  theOutputDir,
QString  theFileType
 

Import a Climate file Output files will have the same name suffix as input file, with a numerical suffix for each monthly block.

Note:
if an errror occurs, an empty QStringList or partially filled QStringList will be returned (and an error will be emitted)
Parameters:
theInputFile A valid hadley climate data file
theOutputDir The directory where the output files will be generated.
theFileType The type of climate file to process
Returns:
a QStringList containing the list of output file names.

Definition at line 38 of file omgclimateimporter.cpp.

References OmgClimateFileReader::blockCount(), OmgClimateFileReader::currentCol(), OmgClimateFileReader::currentRow(), OmgMeridianSwitcher::doSwitch(), error(), OmgClimateFileReader::getElement(), OmgClimateFileReader::initialise(), OmgClimateFileReader::isAtMatrixEnd(), message(), propogateError(), propogateMessage(), OmgClimateFileReader::setActiveBlock(), updateProgress(), OmgClimateFileReader::xDim(), and OmgClimateFileReader::yDim().

Referenced by OmgClimateConverter::on_pbnProcess_clicked().

Here is the call graph for this function:

void OmgClimateImporter::message QString  theMessage  )  [signal]
 

Referenced by import(), and propogateMessage().

void OmgClimateImporter::propogateError QString  theError  )  [slot]
 

Pass an error received on up to any listening qobjects

Definition at line 213 of file omgclimateimporter.cpp.

References error().

Referenced by import().

void OmgClimateImporter::propogateMessage QString  theMessage  )  [slot]
 

Pass an error received on up to any listening qobjects

Definition at line 219 of file omgclimateimporter.cpp.

References message().

Referenced by import().

void OmgClimateImporter::updateProgress int  theProgress,
int  theMaximum
[signal]
 

Emit a progress signal. should only ever be called using the showProgress method so we can properly support gdal style callbacks

See also:
showProgress

Referenced by import().


The documentation for this class was generated from the following files:
Generated on Mon Apr 28 15:12:43 2008 for openModellerDesktop by  doxygen 1.4.1-20050210