openPilotLog
processaircraft.h
1 #ifndef PROCESSAIRCRAFT_H
2 #define PROCESSAIRCRAFT_H
3 #include <QtCore>
4 #include "src/opl.h"
5 
7 {
8 public:
9  ProcessAircraft(const QVector<QStringList> &raw_csv_data)
10  : rawData(raw_csv_data){};
11 
12  void init(){
13  parseRawData();
14  processParsedData();
15  };
16 
17  QHash<QString, QHash<QString, QVariant> > getProcessedTailMaps() const;
18  QHash<QString, int> getProcessedTailIds() const;
19 
20 private:
21  void parseRawData();
22  void processParsedData();
23  QVector<QStringList> rawData;
24 
28  QVector<QStringList> unique_tails;
29 
38  QHash<QString, QHash<QString, QVariant>> processedTailMaps;
39 
46  QHash<QString, int> processedTailIds;
47 };
48 
49 #endif // PROCESSAIRCRAFT_H
Definition: processaircraft.h:7