Website Summary Files Commits Branches @commit @diff @stats
path: root / src / EventSystem
diff options
context:
space:
mode:
Commit5a562ba407ffe0a9af3cd7c22f777a2707362684 (patch)
Author
 Syndamia <kamen.d.mladenov@protonmail.com>
2022-05-02 20:15:08 +0300
Committer
 Syndamia <kamen.d.mladenov@protonmail.com>
2022-05-02 20:15:08 +0300
Files061df1556d71fea2f2442172be909c550cf3d2aa /src/EventSystem
FMI-OOP-P1_TicketSystem-5a562ba407ffe0a9af3cd7c22f777a2707362684.tar
FMI-OOP-P1_TicketSystem-5a562ba407ffe0a9af3cd7c22f777a2707362684.tar.gz
FMI-OOP-P1_TicketSystem-5a562ba407ffe0a9af3cd7c22f777a2707362684.zip
Parent3ddd28cfc90d9a744f7a7c2c2ab024d22faebe85 (diff)
Autocommit at 02.05.2022 @ 20:15
2 files changed, 7 insertions, 0 deletions
-rw-r--r--src/EventSystem/Event.h2
-rw-r--r--src/EventSystem/Ticket.cpp5
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));
+}