-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.h
111 lines (93 loc) · 2.28 KB
/
main.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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
#ifndef __MAIN_H_
#define __MAIN_H_
/*
main.cpp
Author: M00776456
Created: 20/12/21
Updated: 13/01/22
*/
#include <string>
#include <vector>
#include "events.h"
#include "struct.h"
#include "live.h"
#include "film.h"
#include "standUp.h"
/*
To display the main menu for the staff to choose between events and list all events' details.
@param no parameter
@return int
*/
int mainMenu();
/*
To display the menu for booking, refund or list details of a particular chosen event
@param no parameter
@return int
*/
int menu();
/*
To add a booking or cancel booking and list details and availability for live event.
@param liveDetails stores the details of the chosen live event
*/
void live(Event* liveDetails);
/*
To add a booking or cancel booking and list details and availability for stand up event.
@param standUpDetails stores the details of the chosen stand-up event
*/
void standUp(Event* standUpDetails);
/*
To add a booking or cancel booking and list details and availability for film event.
@param filmDetails stores the details of the chosen film event
*/
void film(Event* filmDetails);
/*
To load the file if already exist into a vector
@param no parameter
*/
void loadFile();
/*
To print the list of name of a particular event
@param array stores the details of type struc
*/
void printName(details* array);
/*
To add data to the file if doesn't exist
@param no parameter
*/
void addData();
/*
To save data to the file when quit
@param no parameter
*/
void saveData();
/*
To determine the size of the vector size
@param no parameter
*/
void determineSize();
/*
To add booking for an event
@param details stores the details of the chosen event
*/
void booking(Event* details);
/*
To cancel booking for an event
@param details stores the details of the chosen event
*/
void cancelBooking(Event* details);
/*
To display the shows of each event and make a choice
@param vectorSize stores the size of the vector event
*/
void menuChoice(int vectorSize, details* event);
/*
To list details of all events\
@param no parameter
*/
void listAll();
/*
To clear the heap memory and exit the program
@param no parameter
*/
void quit();
#endif