blob: c3f96fddd9a6f4531d698b7175766ed3c7706ffb (
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
27
28
29
30
31
32
33
34
|
#include "Hall.h"
Hall::Hall() : Hall(0, 0, 0) {}
Hall::Hall(int number, unsigned rows, unsigned seatsPerRow) {
this->number = number;
this->rows = rows;
this->seatsPerRow = seatsPerRow;
}
int Hall::get_number() const {
return number;
}
void Hall::set_number(int number) {
this->number = number;
}
unsigned Hall::get_rows() const {
return rows;
}
void Hall::set_rows(unsigned rows) {
this->rows = rows;
}
unsigned Hall::get_seatsPerRow() const {
return seatsPerRow;
}
void Hall::set_seatsPerRow(unsigned seatsPerRow) {
this->seatsPerRow = seatsPerRow;
}
int Hall::compare(const Hall& other) {
return (number > other.get_number()) - (number < other.get_number());
}
|