-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMyFlight.h
61 lines (41 loc) · 1.17 KB
/
MyFlight.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
/*****************
* Ori Kopel
* 205533151
* ex2 - nov 2018
****************/
#ifndef EX2_MYFLIGHT_H
#define EX2_MYFLIGHT_H
#include "MyEmployee.h"
/**
* impliment of flight.
*/
class MyFlight : virtual public Flight {
string id;
int model;
list<Reservation *> reser;
list<Employee *> team;
Date date;
string from;
string des;
public:
explicit MyFlight(int model, const Date &date, const string &from, const string &des, IDgenerator *company,
list<Employee *> list);
explicit MyFlight(const string &id, int model, const string &date, const string &from,
const string &des);
void setTeam(list<Employee *> *team);
void setTeamBySchecule(Schedule *s);
int getModelNumber() override;
/**
* add reserv to the flight
* @param res the reservetaion
*/
void addReserv(Reservation *res);
list<Reservation *> getReservations() override;
list<Employee *> getAssignedCrew() override;
Date getDate() override;
~MyFlight() override;
string getSource() override;
string getDestination() override;
string getID() override;
};
#endif //EX2_MYFLIGHT_H