-
Notifications
You must be signed in to change notification settings - Fork 0
/
Grade.hpp
29 lines (25 loc) · 829 Bytes
/
Grade.hpp
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
#pragma once
#include <string>
#include <sstream>
#include <vector>
#include "Generic_mapper.hpp"
namespace travel{
class Grade{
public:
Grade(bool); // true: small database, false: ratp database
void stations(const Generic_station_parser&);
void connections(const Generic_connection_parser&);
void dijkstra(Generic_mapper&, bool=false);
private:
template<typename T>
std::stringstream convert_seconds(T);
bool areEqual(const std::vector<std::pair<uint64_t,uint64_t> >&, const std::vector<std::pair<uint64_t, uint64_t> >&);
std::string stations_filename;
std::string connections_filename;
std::string stations_literal;
std::string connections_literal;
std::vector<uint64_t> ids;
};
static travel::Grade evaluate_small(true);
static travel::Grade evaluate(false);
}