Website Summary Files Commits Branches @commit @diff @stats
path: root / src
diff options
context:
space:
mode:
Commit6b54cc934218dcca4f85d6d5b68157cd72fb8202 (patch)
Author
 Syndamia <kamen.d.mladenov@protonmail.com>
2022-05-05 13:08:15 +0300
Committer
 Syndamia <kamen.d.mladenov@protonmail.com>
2022-05-05 13:08:15 +0300
Files747026810686e8e03a7cd88bc9e63b9efe02dc12 /src
FMI-OOP-P1_TicketSystem-6b54cc934218dcca4f85d6d5b68157cd72fb8202.tar
FMI-OOP-P1_TicketSystem-6b54cc934218dcca4f85d6d5b68157cd72fb8202.tar.gz
FMI-OOP-P1_TicketSystem-6b54cc934218dcca4f85d6d5b68157cd72fb8202.zip
Parent5f9c0593858111b073d2d104d7da6d2136365bd3 (diff)
Autocommit at 05.05.2022 @ 13:08
3 files changed, 16 insertions, 0 deletions
-rw-r--r--src/Venue/Hall.h2
-rw-r--r--src/Venue/Venue.cpp12
-rw-r--r--src/Venue/Venue.h2
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;
};