Website Summary Files Commits Branches @commit @diff @stats
path: root / src / Venue / Venue.cpp
diff options
context:
space:
mode:
Commitb844597fd23bc57aa97e231fc90eecfd6322cecc (patch)
Author
 Syndamia <kamen.d.mladenov@protonmail.com>
2022-05-07 08:28:27 +0300
Committer
 Syndamia <kamen.d.mladenov@protonmail.com>
2022-05-07 08:28:27 +0300
Files86a4112ecfa1e3a54dbcf44a7ddf37575ba4aa39 /src/Venue/Venue.cpp
FMI-OOP-P1_TicketSystem-b844597fd23bc57aa97e231fc90eecfd6322cecc.tar
FMI-OOP-P1_TicketSystem-b844597fd23bc57aa97e231fc90eecfd6322cecc.tar.gz
FMI-OOP-P1_TicketSystem-b844597fd23bc57aa97e231fc90eecfd6322cecc.zip
Parent0910afb91c8f9672be1d6184f47fb75947ea14f1 (diff)
Reorganized whole architecture
1 files changed, 0 insertions, 32 deletions
-rw-r--r--src/Venue/Venue.cpp32
diff --git a/src/Venue/Venue.cpp b/src/Venue/Venue.cpp
deleted file mode 100644
index 01c6a95..0000000
--- a/src/Venue/Venue.cpp
+++ /dev/null
@@ -1,32 +0,0 @@
-#include "Venue.h"
-
-Venue::Venue() : halls(), es() {}
-
-Venue::Venue(const Hall* halls, unsigned hallCount) : es() {
- this->halls = List<Hall>(halls, hallCount);
-}
-
-Venue::Venue(const Hall* halls, unsigned hallCount, const EventSystem& es) {
- this->halls = List<Hall>(halls, hallCount);
- this->es = es;
-}
-
-bool Venue::hallExists(unsigned hallIndex) const {
- return halls.contain(Hall(hallIndex, 0, 0));
-}
-
-bool Venue::hallExists(const Hall& hall) const {
- return this->halls.contain(hall);
-}
-
-const List<Hall>& Venue::get_halls() const {
- return this->halls;
-}
-
-const Hall& Venue::getHall(unsigned hallIndex) const {
- return this->halls[this->halls.findIndex(Hall(hallIndex, 0, 0))];
-}
-
-EventSystem& Venue::get_es() {
- return this->es;
-}