diff options
Autocommit at 05.05.2022 @ 13:08
3 files changed, 16 insertions, 0 deletions
| -rw-r--r-- | src/Venue/Hall.h | 2 | ||||
| -rw-r--r-- | src/Venue/Venue.cpp | 12 | ||||
| -rw-r--r-- | src/Venue/Venue.h | 2 |
diff --git a/src/Venue/Hall.h b/src/Venue/Hall.h index 7344d86..bd2f82a 100644 --- a/src/Venue/Hall.h +++ b/src/Venue/Hall.h @@ -18,6 +18,8 @@ public: unsigned get_seatsPerRow() const; void set_seatsPerRow(unsigned seatsPerRow); + + int compare(const Hall& other); }; #endif diff --git a/src/Venue/Venue.cpp b/src/Venue/Venue.cpp index 4206afe..380bb69 100644 --- a/src/Venue/Venue.cpp +++ b/src/Venue/Venue.cpp @@ -4,3 +4,15 @@ Venue::Venue(const Hall* halls, unsigned hallCount, const EventSystem& es) { this->halls = List<Hall>(halls, hallCount); this->es = es; } + +bool Venue::hallExists(const Hall& hall) const { + return this->halls.contain(hall); +} + +const List<Hall>& Venue::get_halls() const { + return this->halls; +} + +const EventSystem& Venue::get_es() const { + return this->es; +} diff --git a/src/Venue/Venue.h b/src/Venue/Venue.h index 4134ae6..b258014 100644 --- a/src/Venue/Venue.h +++ b/src/Venue/Venue.h @@ -12,6 +12,8 @@ class Venue { public: Venue(const Hall* halls, unsigned hallCount, const EventSystem& es); + bool hallExists(const Hall& hall) const; + const List<Hall>& get_halls() const; const EventSystem& get_es() const; }; |
