mirror of
https://github.com/tumic0/GPXSee.git
synced 2024-10-07 15:23:22 +02:00
28 lines
472 B
C++
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
|