-
Notifications
You must be signed in to change notification settings - Fork 0
/
Avion.h
45 lines (36 loc) · 1.17 KB
/
Avion.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
//
// Avion.h
// Aviacion
//
// Created by Daniel on 10/11/14.
// Copyright (c) 2014 Gotomo. All rights reserved.
//
#ifndef __Aviacion__Avion__
#define __Aviacion__Avion__
#include <iostream>
#include <math.h>
#include "Hora.h"
class Avion{
private:
std::string origin, destination, airline;
int serial_number;
public:
Hora salida, vuelo;
Avion();
Avion(int _serial, std::string _origin, std::string _destination, std::string _airline, std::string _salida):serial_number(_serial), origin(_origin), destination(_destination), airline(_airline), salida(Hora(_salida)){};
int getSerialNumber();
std::string getOrigin();
std::string getDestination();
Hora getSalida();
Hora getVuelo();
void setVuelo(Hora h);
Hora avanzar(int);
void setVuelo(int x1, int y1, int x2, int y2);
bool operator <( Avion & a);
bool operator ==(const Avion & a);
std::ostream & imprimirSalida(std::ostream & os);
std::ostream & imprimirLlegada(std::ostream & os);
void imprimirGrafo(std::ostream & os);
friend std::ostream & operator <<(std::ostream & os, Avion & a);
};
#endif /* defined(__Aviacion__Avion__) */