-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathReservation.cpp
63 lines (54 loc) · 1.3 KB
/
Reservation.cpp
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
/*
* Reservation.cpp
*
* Created on: June 18, 2021
* Author: M. Rohaan Atique
*/
#include "Reservation.h"
Reservation::Reservation() {
status = "NULL";
seatType = "NULL";
reservedFlightID = "NULL";
}
Reservation::Reservation(string status, string seatType, string ID) {
this->status = status;
this->seatType = seatType;
reservedFlightID = ID;
}
Reservation::~Reservation() {
// TODO Auto-generated destructor stub
}
void Reservation::blockReservation() {
status = "BLOCKED";
}
void Reservation::removeReservation() {
}
string Reservation::getReservationStatus() {
return status;
}
//Flight Reservation::getReservedFlight() {
// return reservedFlight;
//}
string Reservation::getSeatType(){
return seatType;
}
void Reservation::setReservationStatus(string st) {
status = st;
}
//void Reservation::setReservedFlight(Flight F) {
// reservedFlight = F;
//}
void Reservation::setSeatType(string type) {
seatType = type;
}
void Reservation::setReservedFlightID(string ID) {
reservedFlightID = ID;
}
string Reservation::getReservedFlightID() {
return reservedFlightID;
}
void Reservation::operator=(Reservation R) {
this->status = R.getReservationStatus();
this->seatType = R.getSeatType();
this->reservedFlightID = R.getReservedFlightID();
}