generated from COP3530/P3-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
F1Data.h
30 lines (26 loc) · 780 Bytes
/
F1Data.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#include <iostream>
#include <fstream>
#include <sstream>
#include <unordered_map>
#include <map>
#include <string>
#include <tuple>
#include <set>
#include <vector>
#include <utility>
using namespace std;
class Formula1Data {
private:
map<string,tuple<string, string, string>> driversMap;
map<string,pair<string, string>> racesMap;
map<string,vector<pair<string, string>>> racesInYearMap;
map<string,vector<tuple<int, int, int>>> lapTimeMap;
map<string,vector<string>> RaceIDDriverIDMap;
public:
void readDriverFile();
void readRacesFile();
void readLapTimeFile();
void printRaces(string year);
vector<pair<string,int>> raceResults(string year, string round);
vector<pair<string,int>> fastestLaps(string year, string round);
};