#include <omgclimatefilegroup.h>
Inheritance diagram for OmgClimateFileGroup:
Definition at line 32 of file omgclimatefilegroup.h.
Signals | |
void | error (QString) |
void | message (QString) |
Public Member Functions | |
OmgClimateFileGroup () | |
~OmgClimateFileGroup () | |
void | close () |
bool | add (OmgClimateFileReader *theReader) |
QVector< float > | getElementVector () |
int | fileCount () |
int | elementCount () |
int | xDim () |
int | yDim () |
const bool | isAtMatrixEnd () |
bool | rewind () |
Private Types | |
typedef QVector< OmgClimateFileReader * > | OmgClimateFileReaderVector |
Private Attributes | |
OmgClimateFileReaderVector | mReaderVector |
int | mElementCount |
int | mXDim |
int | mYDim |
bool | mEndOfMatrixFlag |
|
Type specification for pointer vector for holding file readers. Definition at line 80 of file omgclimatefilegroup.h. |
|
Constructor for filegroup. Initialises the filereader vector. Definition at line 20 of file omgclimatefilegroup.cpp. References mElementCount, mEndOfMatrixFlag, mXDim, and mYDim. |
|
Desctructor - closes each file in the filereader vector and then destroys the vector. Definition at line 28 of file omgclimatefilegroup.cpp. |
|
Add a new file reader object to the filegroup and position the fpos_t at the start of the data block Definition at line 41 of file omgclimatefilegroup.cpp. References error(), mElementCount, mReaderVector, mXDim, and mYDim. Referenced by OmgClimateDataProcessorController::initialiseFileGroup(). |
|
Close all files in the file group Definition at line 31 of file omgclimatefilegroup.cpp. References mReaderVector. |
|
Accessor for the mElementCount property. This property tells us how many cells in any one data block in a filereader exist.
Definition at line 65 of file omgclimatefilegroup.cpp. References mElementCount. Referenced by OmgClimateDataProcessorController::run(). |
|
Referenced by add(). |
|
Used to find out how meny files are in the file group
Definition at line 70 of file omgclimatefilegroup.cpp. References mReaderVector. |
|
Get the next element from each fileReader and return the result as a vector. Definition at line 76 of file omgclimatefilegroup.cpp. References OmgClimateFileReader::getElement(), OmgClimateFileReader::isAtMatrixEnd(), mEndOfMatrixFlag, and mReaderVector. Referenced by OmgClimateDataProcessorController::run(). |
Here is the call graph for this function:
|
Read property of bool mEndOfMatrixFlag. Definition at line 116 of file omgclimatefilegroup.cpp. References mEndOfMatrixFlag. Referenced by OmgClimateDataProcessorController::run(). |
|
|
|
Move to the start of the active data block Definition at line 121 of file omgclimatefilegroup.cpp. References mEndOfMatrixFlag, mReaderVector, and OmgClimateFileReader::setActiveBlock(). Referenced by OmgClimateDataProcessorController::run(). |
Here is the call graph for this function:
|
Accessor for the mXDim property. This property tells us how many cells in any one data block in the x dimension in a filereader exist.
Definition at line 62 of file omgclimatefilegroup.h. Referenced by OmgClimateDataProcessorController::run(). |
|
Accessor for the mXDim property. This property tells us how many cells in any one data block in the y dimension in a filereader exist.
Definition at line 68 of file omgclimatefilegroup.h. Referenced by OmgClimateDataProcessorController::run(). |
|
The number of cells (xdim * ydim) in the block in the first file in the file group. It is assumed that all files in the group have the same block dimensions. Definition at line 88 of file omgclimatefilegroup.h. Referenced by add(), elementCount(), and OmgClimateFileGroup(). |
|
A flag to show whether the end of the matrix has been reached.
Definition at line 105 of file omgclimatefilegroup.h. Referenced by getElementVector(), isAtMatrixEnd(), OmgClimateFileGroup(), and rewind(). |
|
This is the container for all the file readers in this group. Definition at line 82 of file omgclimatefilegroup.h. Referenced by add(), close(), fileCount(), getElementVector(), and rewind(). |
|
The number of cells in the x dimension in a block in the first file in the file group. It is assumed that all files in the group have the same block dimensions. Definition at line 94 of file omgclimatefilegroup.h. Referenced by add(), and OmgClimateFileGroup(). |
|
The number of cells in the y dimension in a block in the first file in the file group. It is assumed that all files in the group have the same block dimensions. Definition at line 100 of file omgclimatefilegroup.h. Referenced by add(), and OmgClimateFileGroup(). |