Website Summary Files Commits Branches @commit @diff @stats
path: root / src / EventSystem / Ticket.cpp
diff options
context:
space:
mode:
1 files changed, 5 insertions, 0 deletions
-rw-r--r--src/EventSystem/Ticket.cpp5
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));
+}