-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflight.h
More file actions
60 lines (55 loc) · 1.23 KB
/
flight.h
File metadata and controls
60 lines (55 loc) · 1.23 KB
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
#ifndef FLIGHT_H
#define FLIGHT_H
#include <string>
#include <ctime>
#include <vector>
#include <iostream>
using namespace std;
class Flight {
private:
string flightID;
string planeID;
int numPil;
int numCabCrew;
vector<string> pilots;
vector<string> cabCrew;
time_t sDate;
time_t eDate;
string sAirCode;
string eAirCode;
int numPass;
int status;
public:
Flight();
void setFlightID(string fID);
string getFlightID();
void setPlaneID(string tailNum);
string getPlaneID();
void setNumPil(int num);
int getNumPil();
void setNumCabCrew(int num);
int getNumCabCrew();
void addPilot(string id);
string getPilot(string id);
void addCabCrew(string id);
string getCabCrew(string id);
void setSDate(time_t start);
time_t getSDate();
void setEDate(time_t end);
time_t getEDate();
void setSAirCode(string code);
string getSAirCode();
void setEAirCode(string code);
string getEAirCode();
void setNumPass(int num);
int getNumPass();
void setStatus(int stat);
int getStatus();
void printPil();
string storePil(int i);
string getPil(string id);
void printCab();
string storeCab(int i);
string getCab(string id);
};
#endif