00001 /****************************************************************************** 00002 * 00003 * This file is part of Cardio Curves. 00004 * Copyright (C) 2009 Jan Gunnar Andreassen 00005 * Copyright (C) 2009 Lars Magne Engedal 00006 * 00007 * Cardio Curves is free software: you can redistribute it and/or modify 00008 * it under the terms of the GNU Lesser General Public License as published 00009 * by the Free Software Foundation, either version 2.1 of the License, or 00010 * (at your option) any later version. 00011 * 00012 * Cardio Cruves is distributed in the hope that it will be useful, 00013 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00015 * GNU Lesser General Public License for more details. 00016 * 00017 * You should have received a copy of the GNU Lesser General Public License 00018 * along with Cardio Curves. If not, see <http://www.gnu.org/licenses/>. 00019 * 00020 * Developer contact: 00021 * (janislazzaroni at users.sourceforge.net) 00022 * (engedal at users.sourceforge.net ) 00023 ******************************************************************************/ 00024 00025 #ifndef FILEREADER_H 00026 #define FILEREADER_H 00027 00033 class FileReader 00034 { 00035 public: 00040 FileReader(const QString &filename = ""); 00041 00046 bool readFile(const QString &filename); 00047 00056 int fillData(QVector<QVector<double> > &pDest, 00057 int screennumber, 00058 int channel); 00059 00061 QPointF lineAxisBounds() const; 00062 00063 private: 00064 QVector<double> fileValues; 00065 QString filename; 00066 00067 }; 00068 inline QPointF FileReader::lineAxisBounds() const 00069 { return QPointF(0.0, 4000.0); } 00070 00071 #endif // FILEREADER_H