Website Summary Files Commits Branches @commit @diff @stats
path: root / src / EventSystem / EventSystem.cpp
diff options
context:
space:
mode:
1 files changed, 9 insertions, 0 deletions
-rw-r--r--src/EventSystem/EventSystem.cpp9
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())