Website Summary Files Commits Branches @commit @diff @stats
path: root / src / Models / Event.cpp
diff options
context:
space:
mode:
Commitbb4433952047a63906e1e61cdf3f2336e7b517d3 (patch)
Author
 Syndamia <kamen.d.mladenov@protonmail.com>
2022-05-07 16:23:41 +0300
Committer
 Syndamia <kamen.d.mladenov@protonmail.com>
2022-05-07 16:23:41 +0300
Filescfb61a1543a131cc72baf3c833526038ea981562 /src/Models/Event.cpp
FMI-OOP-P1_TicketSystem-bb4433952047a63906e1e61cdf3f2336e7b517d3.tar
FMI-OOP-P1_TicketSystem-bb4433952047a63906e1e61cdf3f2336e7b517d3.tar.gz
FMI-OOP-P1_TicketSystem-bb4433952047a63906e1e61cdf3f2336e7b517d3.zip
Parentc8e3d1a1a5dbaf4503df950fdae05b69d8744e70 (diff)
Autocommit at 07.05.2022 @ 16:23
1 files changed, 5 insertions, 0 deletions
-rw-r--r--src/Models/Event.cpp5
diff --git a/src/Models/Event.cpp b/src/Models/Event.cpp
index 4328e3b..51fb16c 100644
--- a/src/Models/Event.cpp
+++ b/src/Models/Event.cpp
@@ -34,3 +34,8 @@ int Event::compare(const Event& other) {
return date.compare(other.date);
return hall->compare(*other.hall);
}
+
+std::istream& operator>>(std::istream& istr, Event& event) {
+ return istr >> event.hall >> event.name >> event.date >> event.tickets >> event.reservations;
+}
+std::ostream& operator<<(std::ostream& ostr, Event& event);