00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef OMGCLIMATEFILEGROUP_H
00019 #define OMGCLIMATEFILEGROUP_H
00020
00021
00022 #include "omgclimatefilereader.h"
00023 #include <QVector>
00024 #include <QObject>
00025
00032 class OMG_LIB_EXPORT OmgClimateFileGroup : public QObject
00033 {
00034 Q_OBJECT;
00035 public:
00037 OmgClimateFileGroup();
00039 ~OmgClimateFileGroup();
00041 void close();
00043 bool add(OmgClimateFileReader *theReader) ;
00045 QVector<float> getElementVector();
00050 int fileCount();
00056 int elementCount();
00062 int xDim() {return mXDim;};
00068 int yDim() {return mYDim;};
00070 const bool isAtMatrixEnd();
00072 bool rewind();
00073
00074 signals:
00075 void error(QString);
00076 void message (QString);
00077
00078 private:
00080 typedef QVector <OmgClimateFileReader *> OmgClimateFileReaderVector;
00082 OmgClimateFileReaderVector mReaderVector;
00088 int mElementCount;
00094 int mXDim;
00100 int mYDim;
00105 bool mEndOfMatrixFlag;
00106
00107
00108 };
00109
00110 #endif