#ifndef POI_H #define POI_H #include #include #include #include "rtree.h" class Entry { public: QPointF coordinates; QString description; bool operator==(const Entry &other) const {return this->description == other.description && this->coordinates == other.coordinates;} }; inline uint qHash(const Entry &key) { return ::qHash(key.description); } class POI { public: bool loadFile(const QString &fileName); QString errorString() const {return _error;} QVector points(const QVector &path) const; void clear(); private: typedef RTree POITree; POITree _tree; QVector _data; QString _error; }; #endif // POI_H