blob: 1c602ffda105f9214133f9a70363d9d8e09e5b3a (
plain) (
blame)
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
|
/*! \mainpage FMI Tickets System
*
* GitHub source code repository: <a href="https://github.com/Syndamia/FMI-OOP-P1_TicketSystem">Syndamia/FMI-OOP-P1_TicketSystem</a>
*/
/*! \file main.cpp
* \brief Entry point for application
*
* Contains the main() function.
*/
#include "Services/EventService.h"
#include "Services/HallService.h"
#include "Models/Hall.h"
#include "UserInterface/FMITicketSystemConsoleUI.h"
/*!
* Creates instances of HallService and EventService and
* executes runUI() function.
*/
int main() {
Hall myVenueHalls[] = { Hall(1, 20, 30), Hall(2, 15, 15), Hall(3, 10, 20) };
HallService hs(myVenueHalls, 3);
EventService es(&hs);
runUI(&es, &hs);
}
|