2016-10-23 11:09:20 +02:00
|
|
|
#ifndef CSVPARSER_H
|
|
|
|
#define CSVPARSER_H
|
|
|
|
|
|
|
|
#include "parser.h"
|
|
|
|
|
|
|
|
class CSVParser : public Parser
|
|
|
|
{
|
|
|
|
public:
|
2016-10-28 14:33:36 +02:00
|
|
|
CSVParser(QList<TrackData> &tracks, QList<RouteData> &routes,
|
|
|
|
QList<Waypoint> &waypoints) : Parser(tracks, routes, waypoints)
|
|
|
|
{_errorLine = 0;}
|
2016-10-23 11:09:20 +02:00
|
|
|
~CSVParser() {}
|
|
|
|
|
2016-10-29 10:40:30 +02:00
|
|
|
bool loadFile(QFile *file);
|
2016-10-23 11:09:20 +02:00
|
|
|
QString errorString() const {return _errorString;}
|
|
|
|
int errorLine() const {return _errorLine;}
|
|
|
|
|
|
|
|
private:
|
|
|
|
QString _errorString;
|
|
|
|
int _errorLine;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // CSVPARSER_H
|