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/Ticket.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/EventSystem/Ticket.cpp') 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-23-gd82d