-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgalfile.h
54 lines (41 loc) · 994 Bytes
/
galfile.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#ifndef GALFILE_H
#define GALFILE_H
#include <QHash>
#include <QObject>
#include <QMap>
#include <QStringList>
class Block;
class Spot;
typedef QMap<int,Block *> BlockList;
typedef QList<Spot *> SpotList;
class GalFile : public QObject
{
Q_OBJECT
public:
enum BlockType {
Rectangular,
Orange1,
Orange2
};
typedef QHash<QString,QString> MetaData;
explicit GalFile(QObject *parent = 0);
explicit GalFile(const QString & fileName, QObject * parent = 0);
void readFile(const QString & fileName);
BlockList * blocks();
SpotList * spots();
const QStringList & columnnames();
signals:
void fileRead();
private:
QString _fileName;
BlockList _blocks;
QStringList _columnNames;
MetaData _metaData;
int _colCount;
void newBlock(int block, const QString & data);
void setColumnHeader(const QString & data);
void setSpotData(const QString & data);
signals:
public slots:
};
#endif // GALFILE_H