blob: 98b8cbbaaf251f4caacabc7d3970f5af6a87f3ec (
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 index, unsigned rowCount, unsigned seatsPerRow) {
this->index = index;
this->rowCount = rowCount;
this->seatsPerRow = seatsPerRow;
}
int Hall::get_index() const {
return index;
}
void Hall::set_index(int index) {
this->index = index;
}
unsigned Hall::get_rowCount() const {
return rowCount;
}
void Hall::set_rowCount(unsigned rowCount) {
this->rowCount = rowCount;
}
unsigned Hall::get_seatsPerRow() const {
return seatsPerRow;
}
void Hall::set_seatsPerRow(unsigned seatsPerRow) {
this->seatsPerRow = seatsPerRow;
}
int Hall::compare(const Hall& other) {
return (index > other.get_index()) - (index < other.get_index());
}
|