-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathItinerario.h
81 lines (63 loc) · 1.44 KB
/
Itinerario.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
/*
* File: Itinerario.h
* Author: Fernando Jiménez Quesada y Miguel González García
*
* Created on 5 de octubre de 2019, 11:33
*/
#ifndef ITINERARIO_H
#define ITINERARIO_H
#include "fecha.h"
#include <cstdlib>
#include "UTM.h"
//#include "Moto.h"
class Moto;
class Itinerario {
public:
Itinerario(int _id, UTM &_inicio, UTM &_fin, Fecha &_fecha, int _minutos, Moto *moto);
Itinerario(const Itinerario& orig);
virtual ~Itinerario();
Fecha GetFecha() const {
return fecha;
}
void SetFecha(Fecha fecha) {
this->fecha = fecha;
}
UTM GetFin() const {
return fin;
}
void SetFin(UTM fin) {
this->fin = fin;
}
int GetId() const {
return id;
}
void SetId(int id) {
this->id = id;
}
UTM GetInicio() const {
return inicio;
}
void SetInicio(UTM inicio) {
this->inicio = inicio;
}
int GetMinutos() const {
return minutos;
}
void SetMinutos(int minutos) {
this->minutos = minutos;
}
void SetVehiculos(Moto* vehiculos);
Moto* GetVehiculos();
std::string GuardaItinerario();
private:
int id, minutos;
UTM inicio, fin;
Fecha fecha;
Moto *vehiculos;
};
#endif /* ITINERARIO_H */