qse  0.5.4
qsedataset.h
Go to the documentation of this file.
1 #ifndef QSEDATASET_H
2 #define QSEDATASET_H
3 
4 #include <QObject>
5 #include <QList>
6 #include <QFile>
7 #include <QStringList>
8 #include <QApplication>
9 #include <QMutex>
10 #include <QList>
11 
12 #include "qsescan.h"
13 
14 class QseDataSet : public QObject
15 {
16  Q_OBJECT;
17 
18  public:
19  QseDataSet(const QString& name, QObject *parent = 0);
20  ~QseDataSet();
21 
22  void writeScan(int i, const QString &name);
23  void writeScans(const QString &name);
24 
25  void removeScan(int i);
26 
27  int scanCount() const;
28  void clear();
29 
30  int maxColumnCount() const;
31 
32  QseScan* scan(int n) const;
33 
34  QStringList header() const;
35  void setHeader(const QStringList& hdr);
36  void appendHeader(const QString& hline);
37 
39 
40  QString fileName() const;
41  void setFileName(const QString &name);
42 
44  void emitDataChanged();
45 
46  signals:
47  void operationCompleted();
48  void message(const QString& msg);
49  void madeProgress(int level);
50  void dataCleared();
51  void scanAdded(int n);
52  void dataChanged();
53 
54  private:
55  QStringList m_Header;
56  QList<QseScan*> m_Scans;
57  QList<QseScan*> m_SpareScans;
58 
59  QString m_FileName;
60 
61  protected:
62  mutable QMutex m_Mutex;
63 };
64 
65 #endif
int scanCount() const
Definition: qsedataset.cpp:31
QseScan * scan(int n) const
Definition: qsedataset.cpp:70
void dataChanged()
void message(const QString &msg)
void clear()
Definition: qsedataset.cpp:52
QMutex m_Mutex
Definition: qsedataset.h:62
void operationCompleted()
void scanAdded(int n)
void setHeader(const QStringList &hdr)
Definition: qsedataset.cpp:132
QString m_FileName
Definition: qsedataset.h:59
void setFileName(const QString &name)
Definition: qsedataset.cpp:191
QString fileName() const
Definition: qsedataset.cpp:186
QseDataSet(const QString &name, QObject *parent=0)
Definition: qsedataset.cpp:9
void removeScan(int i)
Definition: qsedataset.cpp:170
void emitOperationCompleted()
Definition: qsedataset.cpp:38
void appendHeader(const QString &hline)
Definition: qsedataset.cpp:137
void writeScans(const QString &name)
Definition: qsedataset.cpp:144
QStringList m_Header
Definition: qsedataset.h:55
int maxColumnCount() const
Definition: qsedataset.cpp:82
QList< QseScan * > m_SpareScans
Definition: qsedataset.h:57
QList< QseScan * > m_Scans
Definition: qsedataset.h:56
void madeProgress(int level)
QseScan * appendScan()
Definition: qsedataset.cpp:100
void dataCleared()
QStringList header() const
Definition: qsedataset.cpp:125
void emitDataChanged()
Definition: qsedataset.cpp:45
void writeScan(int i, const QString &name)
Definition: qsedataset.cpp:151