-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPlane.h
69 lines (51 loc) · 1.22 KB
/
Plane.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
/****************************************************************
FILE: Plane.h
AUTHOR: Tommy Deng
s199762338
PURPOSE: Header file for the plane object.
****************************************************************/
#ifndef PLANE_H
#define PLANE_H
#include <iostream>
#include "Seat.h"
using namespace std;
class Plane
{
protected:
vector<Seat*> *seat = new vector<Seat*>;
const int NUM_OF_SEATS = 10;
int flightId;
string destinationCity;
string destinationCountry;
string timeDepart;
string timeArrive;
string duration;
int numOfPassengers;
public:
// Default contructor
Plane();
// Parameterized contructor
Plane(int id, string dest);
// Decontructor
~Plane();
// Accessor functions
int getId();
int getNumOfSeats();
string getDestinationCity();
string getDestinationCountry();
string getTimeDepart();
string getTimeArrive();
string getDuration();
int getNumOfPassengers();
// Mutator functions
void setId(int id);
void setDestinationCity(string d);
void setDestinationCountry(string d);
void setTimeDepart(string t);
void setTimeArrive(string t);
void setDuration(string d);
void setNumOfPassengers(int n);
Seat& getSeat(int s);
void setSeat(int s, int id);
};
#endif // !PLANE_H