Website Summary Files Commits Branches @commit @diff @stats
path: root / src / Venue
diff options
context:
space:
mode:
Commit27e25fa55f21842d819072bc5650a61088a5511a (patch)
Author
 Syndamia <kamen.d.mladenov@protonmail.com>
2022-05-02 20:20:10 +0300
Committer
 Syndamia <kamen.d.mladenov@protonmail.com>
2022-05-02 20:20:10 +0300
Files15f2f2690e1a903dc39445d365d090697160d0e2 /src/Venue
FMI-OOP-P1_TicketSystem-27e25fa55f21842d819072bc5650a61088a5511a.tar
FMI-OOP-P1_TicketSystem-27e25fa55f21842d819072bc5650a61088a5511a.tar.gz
FMI-OOP-P1_TicketSystem-27e25fa55f21842d819072bc5650a61088a5511a.zip
Parent5a562ba407ffe0a9af3cd7c22f777a2707362684 (diff)
Autocommit at 02.05.2022 @ 20:20
3 files changed, 72 insertions, 0 deletions
-rw-r--r--src/Venue/Hall.cpp30
-rw-r--r--src/Venue/Hall.h23
-rw-r--r--src/Venue/Venue.h19
diff --git a/src/Venue/Hall.cpp b/src/Venue/Hall.cpp
new file mode 100644
index 0000000..b542c9b
--- /dev/null
+++ b/src/Venue/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;
+}
diff --git a/src/Venue/Hall.h b/src/Venue/Hall.h
new file mode 100644
index 0000000..7344d86
--- /dev/null
+++ b/src/Venue/Hall.h
@@ -0,0 +1,23 @@
+#ifndef HEADER_HALL
+#define HEADER_HALL
+
+class Hall {
+ int index;
+ unsigned rowCount;
+ unsigned seatsPerRow;
+
+public:
+ Hall();
+ Hall(int index, unsigned rowCount, unsigned seatsPerRow);
+
+ int get_index() const;
+ void set_index(int index);
+
+ unsigned get_rowCount() const;
+ void set_rowCount(unsigned rowCount);
+
+ unsigned get_seatsPerRow() const;
+ void set_seatsPerRow(unsigned seatsPerRow);
+};
+
+#endif
diff --git a/src/Venue/Venue.h b/src/Venue/Venue.h
new file mode 100644
index 0000000..b48b238
--- /dev/null
+++ b/src/Venue/Venue.h
@@ -0,0 +1,19 @@
+#ifndef HEADER_VENUE
+#define HEADER_VENUE
+
+#include "List/List.h"
+#include "Hall.h"
+#include "EventSystem/EventSystem.h"
+
+class Venue {
+ List<Hall> halls;
+ EventSystem es;
+
+public:
+ Venue(const Hall* halls, unsigned hallCount, const EventSystem& es);
+
+ const List<Hall>& get_halls() const;
+ const EventSystem& get_es() const;
+};
+
+#endif