From 5a562ba407ffe0a9af3cd7c22f777a2707362684 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Mon, 2 May 2022 20:15:08 +0300 Subject: Autocommit at 02.05.2022 @ 20:15 --- src/EventSystem/Event.h | 2 ++ src/EventSystem/Ticket.cpp | 5 +++++ 2 files changed, 7 insertions(+) (limited to 'src/EventSystem') diff --git a/src/EventSystem/Event.h b/src/EventSystem/Event.h index 0d49a23..fc717cd 100644 --- a/src/EventSystem/Event.h +++ b/src/EventSystem/Event.h @@ -2,6 +2,8 @@ #define HEADER_EVENTSYSTEM_EVENT #include "../List/List.h" +#include "../DateTime/DateTime.h" +#include "../String/String.h" #include "Ticket.h" #include "Reservation.h" diff --git a/src/EventSystem/Ticket.cpp b/src/EventSystem/Ticket.cpp index 2c9b57a..70463db 100644 --- a/src/EventSystem/Ticket.cpp +++ b/src/EventSystem/Ticket.cpp @@ -19,3 +19,8 @@ void Ticket::read(std::istream& istr) { istr.read((char*)&row, sizeof(row)); istr.read((char*)&row, sizeof(seat)); } + +void Ticket::write(std::ostream& ostr) const { + ostr.write((const char*)&row, sizeof(row)); + ostr.write((const char*)&seat, sizeof(seat)); +} -- cgit v1.3.1-26-gb76a