1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-10-07 15:23:22 +02:00
GPXSee/src/map/IMG/netfile.h

43 lines
1.2 KiB
C
Raw Normal View History

2019-05-10 18:56:19 +02:00
#ifndef NETFILE_H
#define NETFILE_H
#include "img.h"
2019-05-10 18:56:19 +02:00
#include "subfile.h"
#include "nodfile.h"
class NODFile;
class LBLFile;
class SubDiv;
class HuffmanTable;
2019-05-10 18:56:19 +02:00
class NETFile : public SubFile
{
public:
NETFile(IMG *img) : SubFile(img), _offset(0), _size(0), _linksOffset(0),
2020-09-18 20:56:00 +02:00
_linksSize(0), _shift(0), _linksShift(0), _init(false) {}
NETFile(const QString &path) : SubFile(path), _offset(0), _size(0),
2020-09-18 20:56:00 +02:00
_linksOffset(0), _linksSize(0), _shift(0), _linksShift(0),
_init(false) {}
NETFile(SubFile *gmp, quint32 offset) : SubFile(gmp, offset),
2020-09-18 20:56:00 +02:00
_offset(0), _size(0), _linksOffset(0), _linksSize(0), _shift(0),
_linksShift(0), _init(false) {}
2019-05-10 18:56:19 +02:00
bool lblOffset(Handle &hdl, quint32 netOffset, quint32 &lblOffset);
2020-09-18 20:56:00 +02:00
bool link(const SubDiv *subdiv, quint32 shift, Handle &hdl, NODFile *nod,
Handle &nodHdl, LBLFile *lbl, Handle &lblHdl,
2020-10-21 21:21:35 +02:00
const NODFile::BlockInfo &blockInfo, quint8 linkId, quint8 lineId,
const HuffmanTable &table, QList<IMG::Poly> *lines);
2019-05-10 18:56:19 +02:00
private:
2020-01-11 23:41:04 +01:00
bool init(Handle &hdl);
2020-09-18 20:56:00 +02:00
bool linkLabel(Handle &hdl, quint32 offset, quint32 size, LBLFile *lbl,
Handle &lblHdl, Label &label);
2019-05-10 18:56:19 +02:00
quint32 _offset, _size, _linksOffset, _linksSize;
2020-09-18 20:56:00 +02:00
quint8 _shift, _linksShift;
quint8 _tableId;
2020-09-18 20:56:00 +02:00
bool _init;
2019-05-10 18:56:19 +02:00
};
#endif // NETFILE_H