Initial Commit
[HECS.git] / DoubleReader.h
blob2a120e5c52383b16451de9ef9f0f626b75a58cd3
1 /***************************************************************************
2 * *
3 * DoubleReader.h Copyright (C) 2008 by Jon Rumble *
4 * j.w.rumble@reading.ac.uk *
5 * *
6 * *
7 * This file is part of HECS, *
8 * *
9 * HECS is free software: you can redistribute it and/or modify *
10 * it under the terms of the GNU General Public License as published by *
11 * the Free Software Foundation, either version 2 of the License, or *
12 * (at your option) any later version. *
13 * *
14 * *
15 * HECS is distributed in the hope that it will be useful, *
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
18 * GNU General Public License for more details. *
19 * *
20 * You should have received a copy of the GNU General Public License *
21 * along with this program. If not, see <http://www.gnu.org/licenses/>. *
22 ***************************************************************************/
24 #ifndef DOUBLEREADER_H
25 #define DOUBLEREADER_H
27 #include "TableReader.h"
29 class DoubleReader : public TableReader {
31 public:
32 DoubleReader (const QString& fileName);
33 DoubleReader();
34 virtual ~DoubleReader ();
36 void readFile(const QString& fileNameIn);
37 QMap <double, QList <double> > getDoubleMap();
38 protected:
41 void parseFileD();
42 void parseLineD(QString lineIn, QMap <double,QList <double> >& ValueMap);
43 private:
45 QMap <double, QList <double> > ValueMap;
49 #endif //END OF DOUBLEREADER_H