-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathReader.h
38 lines (32 loc) · 935 Bytes
/
Reader.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
31
32
33
34
35
36
37
38
/**
* @file Reader.h
* @brief This file contains the reader for the dataset with the information about the bus system
*
* @author Marcos William Ferreira Pinto, Matias Freitas Guimarães, Tiago Ribeiro
*
* @date 20/1/2022
*/
#ifndef AEDAGRAFOS_READER_H
#define AEDAGRAFOS_READER_H
#include "Stop.h"
#include "vector"
#include "string"
#include "Line.h"
#include "Coordinate.h"
#include <iostream>
#include <fstream>
#include <algorithm>
#include "Coordinate.h"
#include "set"
#include "algorithm"
/**
* This class is the reader with its methods to ble able to read the files
*/
class Reader {
public:
static std::set<Stop> readStops(std::string filename);
static std::set<Line> readLines(std::string filename, std::set<Stop> stops);
static Line readLine(std::set<Stop> stops, std::string filename,
std::string code, std::string name, int direction);
};
#endif //AEDAGRAFOS_READER_H