00001 #ifndef QSEINPUTFILE_H 00002 #define QSEINPUTFILE_H 00003 00004 #include "qsedataset.h" 00005 00006 class QseInputFile : public QseDataSet { 00007 Q_OBJECT; 00008 00009 public: 00010 QseInputFile(const QString &name, QObject *parent = 0); 00011 ~QseInputFile(); 00012 00013 void nextDataFile(QString fileName); 00014 bool atEnd(); 00015 void nextInputLine(); 00016 QString filePath(); 00017 void emitDataChanged(); 00018 00019 public slots: 00020 00021 private: 00022 void updateProgress(); 00023 00024 char *m_Buffer; 00025 int m_Length; 00026 int m_BufferSize; 00027 QString m_PathName; 00028 QFile m_File; 00029 00030 int m_NLines; 00031 int m_MaxLength; 00032 QseScan *m_Scan; 00033 int m_NPoints; 00034 }; 00035 00036 #endif
1.5.6