Website Summary Files Commits Branches @commit @diff @stats
path: root / src / EventSystem
diff options
context:
space:
mode:
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));
+}