2021-04-10 15:27:40 +02:00
|
|
|
#ifndef IMG_GMAP_H
|
|
|
|
#define IMG_GMAP_H
|
2020-02-09 23:24:48 +01:00
|
|
|
|
|
|
|
#include "mapdata.h"
|
|
|
|
|
|
|
|
class QXmlStreamReader;
|
|
|
|
class QDir;
|
|
|
|
|
2021-04-10 15:27:40 +02:00
|
|
|
namespace IMG {
|
|
|
|
|
|
|
|
class GMAPData : public MapData
|
2020-02-09 23:24:48 +01:00
|
|
|
{
|
|
|
|
public:
|
2021-04-10 15:27:40 +02:00
|
|
|
GMAPData(const QString &fileName);
|
|
|
|
~GMAPData();
|
2020-02-09 23:24:48 +01:00
|
|
|
|
|
|
|
static bool isGMAP(const QString &path);
|
|
|
|
|
|
|
|
private:
|
|
|
|
bool readXML(const QString &path, QString &dataDir, QString &typFile,
|
|
|
|
QString &baseMap);
|
|
|
|
void mapProduct(QXmlStreamReader &reader, QString &dataDir,
|
|
|
|
QString &typFile, QString &baseMap);
|
|
|
|
void subProduct(QXmlStreamReader &reader, QString &dataDir,
|
|
|
|
QString &baseMap);
|
2020-02-11 21:03:55 +01:00
|
|
|
bool loadTile(const QDir &dir, bool baseMap);
|
2020-02-10 09:33:31 +01:00
|
|
|
|
2020-11-10 00:58:19 +01:00
|
|
|
QList<const QString*> _files;
|
2020-02-09 23:24:48 +01:00
|
|
|
};
|
|
|
|
|
2021-04-10 15:27:40 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
#endif // IMG_GMAP_H
|