-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflights.h
More file actions
40 lines (30 loc) · 864 Bytes
/
flights.h
File metadata and controls
40 lines (30 loc) · 864 Bytes
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
#include <iostream>
#include <vector>
#include <string>
#include <sstream>
#ifndef FL_H
#define FL_H
#include "Passenger.h"
using namespace std;
class Flight
{
private:
vector<Passenger> passengerListM;
vector<vector< Passenger* > > seatMap;
std::string flightNumM;
int numOfRowsM;
int seatsPerRowM;
public:
Flight();
~Flight();
void readDataFromFile(const std::string &textFile);
void displaySeatMap();
void displayPassengerInformation();
void addPassenger(const string& fName, const string& lName, const string& phone, const string& id ,int row, char seat);
void removePassenger(const string& id);
void saveDataToFile(const std::string &textFile);
std::string getFlightNum() const;
int getNumOfRows() const;
int getSeatsPerRow() const;
};
#endif