-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFlight.h
49 lines (39 loc) · 978 Bytes
/
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
#include "Linked_List.h"
#include <iostream>
#include <vector>
using namespace std;
#ifndef FLIGHT_H
#define FLIGHT_H
class Flight {
private:
/* Members */
string name;
int rows;
int columns;
linked_list passenger_list;
vector<vector<bool>> seat_map;
public:
/* Constructor */
Flight();
Flight(string Name, int num_row, int num_col);
Flight(const Flight& source);
/* Destructors */
~Flight();
/* Setters */
void set_name(string name);
void set_rows(int rows);
void set_columns(int columns);
/* Getters */
string get_name()const;
int get_rows()const;
int get_columns()const;
/* Member Functions */
void readFromFile(const string& fileName);
void display_seat_map()const;
void display_list_of_passengers()const;
void add_passenger();
void remove_passenger();
void resizing_seat_map(int rows, int columns);
void save_to_file(string file_name);
};
#endif