diff options
Autocommit at 06.05.2022 @ 11:11
1 files changed, 9 insertions, 0 deletions
| -rw-r--r-- | src/EventSystem/EventSystem.cpp | 9 |
diff --git a/src/EventSystem/EventSystem.cpp b/src/EventSystem/EventSystem.cpp index 28d9ebb..95bd1c4 100644 --- a/src/EventSystem/EventSystem.cpp +++ b/src/EventSystem/EventSystem.cpp @@ -101,6 +101,15 @@ StatusCode EventSystem::buyTicket(const char* name, const Date& date, const Tick return events[ind].buyTicketFromReservation(Reservation(ticket), password); } + +const Hall* EventSystem::queryEventHall(const char* name, const Date& date) { + unsigned ind = indexOfEvent(name, date); + if (ind == events.get_count()) + return nullptr; + + return &events[ind].get_hall(); +} + OrderedList<Ticket> EventSystem::queryTickets(const char* name, const Date& date) { unsigned ind = indexOfEvent(name, date); if (ind == events.get_count()) |
