processpilots.h
#ifndef PROCESSPILOTS_H
#define PROCESSPILOTS_H
#include <QtCore>
#include <src/opl.h>
#include <QHash>
#include <QVector>
class ProcessPilots
{
public:
ProcessPilots(const QVector<QStringList> &raw_csv_data)
: rawData(raw_csv_data){};
void init(){
parseRawData();
processParsedData();
};
QHash<QString, QHash<QString, QVariant> > getProcessedPilotMaps() const;
QHash<QString, int> getProcessedPilotsIds() const;
private:
void parseRawData();
void processParsedData();
QVector<QPair<QStringList, int>> rawPilotsAndIds;
QVector<QStringList> rawData;
QHash<QString, QHash<QString, QVariant>> processedPilotHashes;
QHash<QString, int> processedPilotsIds;
};
#endif // PROCESSPILOTS_H
ProcessPilots
Definition: processpilots.h:9