Website Summary Files Commits Branches @commit @diff @stats
path: root / src / EventSystem / Ticket.h
blob: 374612bbc4f37fb5f23b4bff62700ef4c76ea9ac (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#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;
	int compare(const Ticket& other) const;
};

#endif