-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflight.h
61 lines (47 loc) · 1.4 KB
/
flight.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
#ifndef FLIGHT_H
#define FLIGHT_H
#include <string>
using namespace std;
#include "airplane.h"
#include "path.h"
#include "time.h"
class Flight{
private:
int ID;
int total;
string flightName;
Airplane inUse;
Path p1;
Time departureTime;
Time arrivalTime;
double cost;
double tax;
/* Passenger* economy;
Passenger* business; */
public:
Flight();
int getID() const;
void setID(int x);
Airplane getPlane() const;
Time getDepartureTime() const;
Time getArrivalTime() const;
void setPath(Path x);
void setDepartureTime(int a,int b,int c, int d);
double getCost() const;
double getTax() const;
/* void displayGeneralFlightInfo(){
cout << "Flight#" << ID;
p1.displayPath();
cout << "\nDeparture:: " << departureTime << "Arrival:: " << arrivalTime;
} */
string getFlightName();
void calculateFlightTime();
void setFlightName(string x);
void calculateAvailableSeats();
void createFlight(Path* availablePaths, int numPaths);
void calculateFare();
Flight* importFlightData(Flight* f1, int numFlights, Path* availablePaths, int numPaths);
void displayFlight();
int getTotal() const;
};
#endif