blob: 5d26e35eaf7f5b87c4342f15176dd370e34405b1 (
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
24
25
26
|
#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;
};
std::istream& operator>>(std::istream& istr, Ticket& ticket);
std::ostream& operator<<(std::ostream& ostr, const Ticket& ticket);
#endif
|