| openPilotLog

processpilots.h
1 #ifndef PROCESSPILOTS_H
2 #define PROCESSPILOTS_H
3 #include <QtCore>
4 #include <src/opl.h>
5 #include <QHash>
6 #include <QVector>
7
8 class ProcessPilots
9 {
10 public:
11 ProcessPilots(const QVector<QStringList> &raw_csv_data)
12 : rawData(raw_csv_data){};
13
14 void init(){
15 parseRawData();
16 processParsedData();
17 };
18
19 QHash<QString, QHash<QString, QVariant> > getProcessedPilotMaps() const;
20 QHash<QString, int> getProcessedPilotsIds() const;
21
22 private:
23
24 void parseRawData();
25 void processParsedData();
26
27 QVector<QPair<QStringList, int>> rawPilotsAndIds;
28 QVector<QStringList> rawData;
29
38 QHash<QString, QHash<QString, QVariant>> processedPilotHashes;
39
46 QHash<QString, int> processedPilotsIds;
47 };
48
49 #endif // PROCESSPILOTS_H
ProcessPilots
Definition: processpilots.h:9