2023-09-13 20:02:24 +02:00
|
|
|
#ifndef GMIFILE_H
|
|
|
|
#define GMIFILE_H
|
|
|
|
|
|
|
|
#include "calibrationpoint.h"
|
|
|
|
|
|
|
|
class QIODevice;
|
|
|
|
|
|
|
|
class GmiFile
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
GmiFile(QIODevice &file);
|
|
|
|
|
2023-09-14 18:36:03 +02:00
|
|
|
bool isValid() const {return _valid;}
|
2023-09-13 20:02:24 +02:00
|
|
|
const QString &errorString() const {return _errorString;}
|
|
|
|
|
|
|
|
const QString &image() const {return _image;}
|
|
|
|
const QSize &size() const {return _size;}
|
2023-09-14 18:36:03 +02:00
|
|
|
const QList<CalibrationPoint> &calibrationPoints() const {return _points;}
|
2023-09-13 20:02:24 +02:00
|
|
|
|
|
|
|
private:
|
2023-09-14 18:36:03 +02:00
|
|
|
bool parse(QIODevice &device);
|
2023-09-13 20:02:24 +02:00
|
|
|
|
|
|
|
QString _image;
|
|
|
|
QSize _size;
|
2023-09-14 18:36:03 +02:00
|
|
|
QList<CalibrationPoint> _points;
|
2023-09-13 20:02:24 +02:00
|
|
|
|
2023-09-14 18:36:03 +02:00
|
|
|
bool _valid;
|
2023-09-13 20:02:24 +02:00
|
|
|
QString _errorString;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // GMIFILE_H
|