1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-10-06 23:03:22 +02:00
GPXSee/src/map/maplist.h

31 lines
690 B
C
Raw Normal View History

#ifndef MAPLIST_H
#define MAPLIST_H
2016-02-12 10:09:17 +01:00
#include <QString>
#include "common/treenode.h"
2018-03-09 23:24:08 +01:00
class Map;
2021-06-17 21:58:25 +02:00
class Projection;
class MapList
{
public:
2021-06-17 21:58:25 +02:00
static TreeNode<Map*> loadMaps(const QString &path, const Projection &proj);
2017-07-27 19:47:46 +02:00
static QString formats();
static QStringList filter();
private:
typedef Map*(*ParserCb)(const QString &, const Projection &, bool *isDir);
typedef QMultiMap<QString, ParserCb> ParserMap;
2021-06-17 21:58:25 +02:00
static Map *loadFile(const QString &path, const Projection &proj,
bool *isDir = 0);
static TreeNode<Map*> loadDir(const QString &path, const Projection &proj,
TreeNode<Map *> *parent = 0);
static ParserMap parsers();
static ParserMap _parsers;
};
#endif // MAPLIST_H