Website Summary Files Commits Branches @commit @diff @stats
path: root / src / EventSystem / Ticket.h
diff options
context:
space:
mode:
Commit3ddd28cfc90d9a744f7a7c2c2ab024d22faebe85 (patch)
Author
 Syndamia <kamen.d.mladenov@protonmail.com>
2022-05-02 20:10:06 +0300
Committer
 Syndamia <kamen.d.mladenov@protonmail.com>
2022-05-02 20:10:06 +0300
Files13091f654ff48300fd9d0a1178c5d614cb5fb484 /src/EventSystem/Ticket.h
FMI-OOP-P1_TicketSystem-3ddd28cfc90d9a744f7a7c2c2ab024d22faebe85.tar
FMI-OOP-P1_TicketSystem-3ddd28cfc90d9a744f7a7c2c2ab024d22faebe85.tar.gz
FMI-OOP-P1_TicketSystem-3ddd28cfc90d9a744f7a7c2c2ab024d22faebe85.zip
Parent46a8208cb0acb836613d531766b61e94ec9517d7 (diff)
Autocommit at 02.05.2022 @ 20:10
1 files changed, 6 insertions, 0 deletions
-rw-r--r--src/EventSystem/Ticket.h6
diff --git a/src/EventSystem/Ticket.h b/src/EventSystem/Ticket.h
index 159c6fa..dc87a2f 100644
--- a/src/EventSystem/Ticket.h
+++ b/src/EventSystem/Ticket.h
@@ -1,6 +1,9 @@
#ifndef HEADER_EVENTSYSTEM_TICKET
#define HEADER_EVENTSYSTEM_TICKET
+#include <istream>
+#include <ostream>
+
class Ticket {
unsigned row;
unsigned seat;
@@ -11,6 +14,9 @@ public:
unsigned get_row() const;
unsigned get_seat() const;
+
+ void read(std::istream& istr);
+ void write(std::ostream& ostr) const;
};
#endif