Website Summary Files Commits Branches @commit @diff @stats
path: root / src / Hall.cpp
diff options
context:
space:
mode:
Commit3351e42a86d20453cb1271c23d666e3315c36ab6 (patch)
Author
 Syndamia <kamen.d.mladenov@protonmail.com>
2022-05-01 10:36:18 +0300
Committer
 Syndamia <kamen.d.mladenov@protonmail.com>
2022-05-01 10:36:18 +0300
Files7e482972e5f7c1b69f6684447142bb4ecf8cb8de /src/Hall.cpp
FMI-OOP-P1_TicketSystem-3351e42a86d20453cb1271c23d666e3315c36ab6.tar
FMI-OOP-P1_TicketSystem-3351e42a86d20453cb1271c23d666e3315c36ab6.tar.gz
FMI-OOP-P1_TicketSystem-3351e42a86d20453cb1271c23d666e3315c36ab6.zip
Parentbd2d475fc16c4260158cb5cd297c86cb3a82cb0e (diff)
Autocommit at 01.05.2022 @ 10:36
1 files changed, 30 insertions, 0 deletions
-rw-r--r--src/Hall.cpp30
diff --git a/src/Hall.cpp b/src/Hall.cpp
new file mode 100644
index 0000000..b542c9b
--- /dev/null
+++ b/src/Hall.cpp
@@ -0,0 +1,30 @@
+#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;
+}