1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-10-07 07:13:21 +02:00
GPXSee/src/map/IMG/img.h

28 lines
462 B
C++

#ifndef IMG_H
#define IMG_H
#include <QFile>
#include "mapdata.h"
class IMG : public MapData
{
public:
IMG(const QString &fileName);
QString fileName() const {return _file.fileName();}
private:
friend class SubFile;
int blockSize() const {return _blockSize;}
bool readBlock(int blockNum, char *data);
qint64 read(char *data, qint64 maxSize);
template<class T> bool readValue(T &val);
QFile _file;
quint8 _key;
int _blockSize;
};
#endif // IMG_H