2020-02-09 23:24:48 +01:00
|
|
|
#ifndef GMAP_H
|
|
|
|
#define GMAP_H
|
|
|
|
|
|
|
|
#include "mapdata.h"
|
|
|
|
|
|
|
|
class QXmlStreamReader;
|
|
|
|
class QDir;
|
|
|
|
|
|
|
|
class GMAP : public MapData
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
GMAP(const QString &fileName);
|
|
|
|
|
|
|
|
QString fileName() const {return _fileName;}
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
QString _fileName;
|
2020-02-09 23:24:48 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // GMAP_H
|