#ifndef HEADER_EVENTSYSTEM_EVENT #define HEADER_EVENTSYSTEM_EVENT #include "../Generic/List/OrderedList.hpp" #include "../Generic/Date/Date.h" #include "../Generic/String/String.h" #include "Hall.h" #include "Ticket.h" #include "Reservation.h" #include #include class Event { Hall hall; String name; Date date; OrderedList tickets; OrderedList reservations; public: Event(); Event(const Hall& hall, String name, Date date); const Hall& get_hall() const; const String& get_name() const; const Date& get_date() const; OrderedList& get_tickets(); OrderedList& get_reservations(); void write(std::ostream& ostr); void read(std::istream& istr); int compare(const Event& other); friend std::istream& operator>>(std::istream& istr, Event& event); friend std::ostream& operator<<(std::ostream& ostr, const Event& event); }; #endif