1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-10-07 15:23:22 +02:00
GPXSee/src/map/IMG/img.h
Martin Tůma 32d3eab10e Initial (and partial) IMG links support
+ various IMG fixes (RGN parsing, IMG parsing)
2020-06-27 22:46:26 +02:00

28 lines
472 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;
unsigned blockBits() const {return _blockBits;}
bool readBlock(int blockNum, char *data);
qint64 read(char *data, qint64 maxSize);
template<class T> bool readValue(T &val);
QFile _file;
quint8 _key;
unsigned _blockBits;
};
#endif // IMG_H