Website Summary Files Commits Branches @commit @diff @stats
path: root / src / Models
diff options
context:
space:
mode:
2 files changed, 19 insertions, 19 deletions
-rw-r--r--src/Models/Hall.cpp24
-rw-r--r--src/Models/Hall.h14
diff --git a/src/Models/Hall.cpp b/src/Models/Hall.cpp
index 98b8cbb..c3f96fd 100644
--- a/src/Models/Hall.cpp
+++ b/src/Models/Hall.cpp
@@ -2,24 +2,24 @@
Hall::Hall() : Hall(0, 0, 0) {}
-Hall::Hall(int index, unsigned rowCount, unsigned seatsPerRow) {
- this->index = index;
- this->rowCount = rowCount;
+Hall::Hall(int number, unsigned rows, unsigned seatsPerRow) {
+ this->number = number;
+ this->rows = rows;
this->seatsPerRow = seatsPerRow;
}
-int Hall::get_index() const {
- return index;
+int Hall::get_number() const {
+ return number;
}
-void Hall::set_index(int index) {
- this->index = index;
+void Hall::set_number(int number) {
+ this->number = number;
}
-unsigned Hall::get_rowCount() const {
- return rowCount;
+unsigned Hall::get_rows() const {
+ return rows;
}
-void Hall::set_rowCount(unsigned rowCount) {
- this->rowCount = rowCount;
+void Hall::set_rows(unsigned rows) {
+ this->rows = rows;
}
unsigned Hall::get_seatsPerRow() const {
@@ -30,5 +30,5 @@ void Hall::set_seatsPerRow(unsigned seatsPerRow) {
}
int Hall::compare(const Hall& other) {
- return (index > other.get_index()) - (index < other.get_index());
+ return (number > other.get_number()) - (number < other.get_number());
}
diff --git a/src/Models/Hall.h b/src/Models/Hall.h
index bd2f82a..346a063 100644
--- a/src/Models/Hall.h
+++ b/src/Models/Hall.h
@@ -2,19 +2,19 @@
#define HEADER_HALL
class Hall {
- int index;
- unsigned rowCount;
+ int number;
+ unsigned rows;
unsigned seatsPerRow;
public:
Hall();
- Hall(int index, unsigned rowCount, unsigned seatsPerRow);
+ Hall(int number, unsigned rows, unsigned seatsPerRow);
- int get_index() const;
- void set_index(int index);
+ int get_number() const;
+ void set_number(int number);
- unsigned get_rowCount() const;
- void set_rowCount(unsigned rowCount);
+ unsigned get_rows() const;
+ void set_rows(unsigned rows);
unsigned get_seatsPerRow() const;
void set_seatsPerRow(unsigned seatsPerRow);