Website Summary Files Commits Branches @commit @diff @stats
path: root / src / EventSystem / Ticket.h
blob: dc87a2f4c9589e421118079940436c9f6658732d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef HEADER_EVENTSYSTEM_TICKET
#define HEADER_EVENTSYSTEM_TICKET

#include <istream>
#include <ostream>

class Ticket {
	unsigned row;
	unsigned seat;

public:
	Ticket();
	Ticket(unsigned row, unsigned seat);

	unsigned get_row() const;
	unsigned get_seat() const;

	void read(std::istream& istr);
	void write(std::ostream& ostr) const;
};

#endif