#ifndef GPIPARSER_H #define GPIPARSER_H #include "parser.h" class QDataStream; class QTextCodec; class GPIParser : public Parser { public: bool parse(QFile *file, QList &tracks, QList &routes, QList &polygons, QVector &waypoints); QString errorString() const {return _errorString;} int errorLine() const {return 0;} private: bool readFileHeader(QDataStream &stream, quint32 &ebs); bool readGPIHeader(QDataStream &stream, QTextCodec **codec); bool readData(QDataStream &stream, QTextCodec *codec, QVector &waypoints, QList &polygons, const QString &fileName); QString _errorString; }; #endif // GPIPARSER_H