#ifndef POI_H #define POI_H #include #include #include #include "waypoint.h" #include "rtree.h" class POI { public: POI() : _errorLine(0) {} bool loadFile(const QString &fileName); QString errorString() const {return _error;} int errorLine() const {return _errorLine;} QVector points(const QVector &path, qreal radius = 0.01) const; void clear(); private: typedef RTree POITree; bool loadCSVFile(const QString &fileName); bool loadGPXFile(const QString &fileName); POITree _tree; QVector _data; QString _error; int _errorLine; }; #endif // POI_H