Website Summary Files Commits Branches @commit @diff @stats
path: root / src
diff options
context:
space:
mode:
Commitd09a1036d618761c272c5838c91c2f7c0aa228e1 (patch)
Author
 Syndamia <kamen.d.mladenov@protonmail.com>
2022-05-05 13:13:17 +0300
Committer
 Syndamia <kamen.d.mladenov@protonmail.com>
2022-05-05 13:13:17 +0300
Files209491caa717b11905928af8be9d8fa8171e9cb9 /src
FMI-OOP-P1_TicketSystem-d09a1036d618761c272c5838c91c2f7c0aa228e1.tar
FMI-OOP-P1_TicketSystem-d09a1036d618761c272c5838c91c2f7c0aa228e1.tar.gz
FMI-OOP-P1_TicketSystem-d09a1036d618761c272c5838c91c2f7c0aa228e1.zip
Parent6b54cc934218dcca4f85d6d5b68157cd72fb8202 (diff)
Autocommit at 05.05.2022 @ 13:13
3 files changed, 20 insertions, 0 deletions
-rw-r--r--src/Venue/Hall.cpp5
-rw-r--r--src/VenueConsoleUI.cpp7
-rw-r--r--src/VenueConsoleUI.h8
diff --git a/src/Venue/Hall.cpp b/src/Venue/Hall.cpp
index b542c9b..864ea6e 100644
--- a/src/Venue/Hall.cpp
+++ b/src/Venue/Hall.cpp
@@ -28,3 +28,8 @@ unsigned Hall::get_seatsPerRow() const {
void Hall::set_seatsPerRow(unsigned seatsPerRow) {
this->seatsPerRow = seatsPerRow;
}
+
+int Hall::compare(const Hall& other) {
+ // TODO: compare seats and rows
+ return (index > other.get_index()) - (index < other.get_index());
+}
diff --git a/src/VenueConsoleUI.cpp b/src/VenueConsoleUI.cpp
new file mode 100644
index 0000000..cb73c14
--- /dev/null
+++ b/src/VenueConsoleUI.cpp
@@ -0,0 +1,7 @@
+#include "VenueConsoleUI.h"
+#include "ConsoleInterface/Menu.h"
+#include "ConsoleInterface/Toolbox.hpp"
+
+void runUI(Venue& venue) {
+
+}
diff --git a/src/VenueConsoleUI.h b/src/VenueConsoleUI.h
new file mode 100644
index 0000000..f96076a
--- /dev/null
+++ b/src/VenueConsoleUI.h
@@ -0,0 +1,8 @@
+#ifndef HEADER_VENUECONSOLEUI
+#define HEADER_VENUECONSOLEUI
+
+#include "Venue/Venue.h"
+
+void runUI(Venue& venue);
+
+#endif