Website Summary Files Commits Branches @commit @diff @stats
path: root / src / Models / Hall.cpp
diff options
context:
space:
mode:
1 files changed, 4 insertions, 2 deletions
-rw-r--r--src/Models/Hall.cpp6
diff --git a/src/Models/Hall.cpp b/src/Models/Hall.cpp
index 220fc90..3c45937 100644
--- a/src/Models/Hall.cpp
+++ b/src/Models/Hall.cpp
@@ -27,8 +27,10 @@ void Hall::read(std::istream& istr) {
istr.read((char*)&seatsPerRow, sizeof(seatsPerRow));
}
-void write(std::ostream& ostr) {
-
+void Hall::write(std::ostream& ostr) {
+ istr.write((char*)&number, sizeof(number));
+ istr.write((char*)&rows, sizeof(rows));
+ istr.write((char*)&seatsPerRow, sizeof(seatsPerRow));
}
int Hall::compare(const Hall& other) const {