-
Notifications
You must be signed in to change notification settings - Fork 0
/
Passenger.h
41 lines (36 loc) · 914 Bytes
/
Passenger.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
/*
* Passenger.h
*
* Created on: June 18, 2021
* Author: M. Rohaan Atique
*/
#ifndef PASSENGER_H_
#define PASSENGER_H_
#include "UserClass.h"
#include "Reservation.h"
#include <fstream>
class Passenger: public UserClass {
int ID;
string CNIC;
string paymentMethod;
string visa;
int lastMonthFlightCount;
bool hasReservedFlight;
Reservation* reservedFlights;
int reservedFlightCount;
// TODO: Add ReservedFlight:Reservation variable.
public:
Passenger();
virtual ~Passenger();
bool validate(string, string);
bool signUp();
int getReservedFlightCount();
void addReservation(Reservation);
void deleteReservation(Reservation);
void deleteReservation(string);
string getCNIC();
void setCNIC(string);
void FetchData(string username); // Used to add data of customer when logged in.
Reservation* getReservation();
};
#endif /* PASSENGER_H_ */