-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMenu.h
73 lines (62 loc) · 1.97 KB
/
Menu.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
62
63
64
65
66
67
68
69
70
71
72
73
#ifndef MENU_H
#define MENU_H
#include<iostream>
#include<string>
#include "ARS.h"
using namespace std;
class Menu {
private:
// variables to store details of flights specified by user
string Origin_, // city of origin
Destination_, // destination
DateOfTravel_, // date of travel
transit_location, // transit location
Airline_; // airline name
string transit_min,
transit_max;
// some boolean variables as checks
bool transit_location_b = 0;
bool transit_hours_b = 0;
bool c_t = 0;
bool cost_travel = -1;
bool airline_b = 0;
bool direct_flight = 0;
// selection varaibles
int choice = 0;
char select = 'a';
// arrays containing city names, dates, airlines from ARS object that will be created
int Loc_Num;
string* Loc_Names;
string* dt;
string* airl;
int n_dt;
int n_airl;
public:
// Start Screen Showing Functions
void showSplashScreen();
// Data Setting Function
void getARSData( ARS& obj);
// Menu Displaying Functions
void selectOrigin();
void selectDestination();
void selectDateFlight();
void selectTransit();
void selectTransitLocation();
void selectAirline();
void selectTimeOrCost();
void selectDirectFlight();
// Selected Options Getting Functions
string getOrigin() const;
string getDestination() const;
string getDateOfTravel() const;
bool getTransitLocFlag() const;
string getTransitLoc() const;
bool getTransitHoursFlag() const;
string getTransitHoursMin();
string getTransitHoursMax();
bool getAirlineFlag();
string getAirline();
bool getDirectFlightFlag();
bool getTimeOrCost();
};
#endif