diff options
Autocommit at 06.05.2022 @ 09:16
2 files changed, 19 insertions, 19 deletions
| -rw-r--r-- | src/EventSystem/EventSystem.cpp | 34 | ||||
| -rw-r--r-- | src/EventSystem/EventSystem.h | 4 |
diff --git a/src/EventSystem/EventSystem.cpp b/src/EventSystem/EventSystem.cpp index c581669..c5fc0c1 100644 --- a/src/EventSystem/EventSystem.cpp +++ b/src/EventSystem/EventSystem.cpp @@ -101,20 +101,20 @@ StatusCode EventSystem::buyTicket(const char* name, const Date& date, const Tick return events[ind].buyTicketFromReservation(Reservation(ticket), password); } -List<Ticket> EventSystem::queryFreeTickets(const char* name, const Date& date) { - unsigned ind = indexOfEvent(name, date); - - if (ind == events.get_count()) - return List<Ticket>(); - - List<Ticket> freeTickets; - - unsigned nextIndT = 0, nextIndR = 0; - for (unsigned r = 1; r <= events[ind].get_hall().get_rowCount(); r++) { - for (unsigned s = 1; s <= events[ind].get_hall().get_seatsPerRow(); s++) { - // TODO: finish - } - } - - return freeTickets; -} +// List<Ticket> EventSystem::queryFreeTickets(const char* name, const Date& date) { +// unsigned ind = indexOfEvent(name, date); +// +// if (ind == events.get_count()) +// return List<Ticket>(); +// +// List<Ticket> freeTickets; +// +// unsigned nextIndT = 0, nextIndR = 0; +// for (unsigned r = 1; r <= events[ind].get_hall().get_rowCount(); r++) { +// for (unsigned s = 1; s <= events[ind].get_hall().get_seatsPerRow(); s++) { +// // TODO: finish +// } +// } +// +// return freeTickets; +// } diff --git a/src/EventSystem/EventSystem.h b/src/EventSystem/EventSystem.h index d7bd127..4fd6745 100644 --- a/src/EventSystem/EventSystem.h +++ b/src/EventSystem/EventSystem.h @@ -33,8 +33,8 @@ public: StatusCode buyTicket(const char* name, const Date& date, unsigned row, unsigned seat, const char* password); StatusCode buyTicket(const char* name, const Date& date, const Ticket& ticket, const char* password); - List<Ticket> queryFreeTickets(const char* name, const Date& date); - void queryReservations(unsigned eventIndex); + // List<Ticket> queryFreeTickets(const char* name, const Date& date); + List<Reservation> queryReservations(unsigned eventIndex); void queryBoughtTickets(Date start, Date end, unsigned hall); void queryMostVisited(); void queryInsufficientlyVisited(); |
