-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathItinerario.h
89 lines (64 loc) · 1.34 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
81
82
83
84
85
86
87
88
/*
* 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: Miguerubsk
*
* Created on 5 de octubre de 2019, 11:33
*/
#ifndef ITINERARIO_H
#define ITINERARIO_H
#include "fecha.h"
#include <cstdlib>
struct UTM {
double latitud;
double longitud;
UTM(double _lat, double _long) : latitud(_lat), longitud(_long) {
}
UTM() : latitud(0), longitud(0) {
}
};
class Itinerario {
public:
Itinerario();
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;
}
private:
int id, minutos;
UTM inicio, fin;
Fecha fecha;
};
#endif /* ITINERARIO_H */