Website Summary Files Commits Branches @commit @diff @stats
path: root / src
diff options
context:
space:
mode:
Commit1640c16275b3f4ab619c303930215abf592f04c3 (patch)
Author
 Syndamia <kamen.d.mladenov@protonmail.com>
2022-05-05 13:18:19 +0300
Committer
 Syndamia <kamen.d.mladenov@protonmail.com>
2022-05-05 13:18:19 +0300
Files388a1cd8b02eef6509cb0418b8a02b2e98297534 /src
FMI-OOP-P1_TicketSystem-1640c16275b3f4ab619c303930215abf592f04c3.tar
FMI-OOP-P1_TicketSystem-1640c16275b3f4ab619c303930215abf592f04c3.tar.gz
FMI-OOP-P1_TicketSystem-1640c16275b3f4ab619c303930215abf592f04c3.zip
Parentd09a1036d618761c272c5838c91c2f7c0aa228e1 (diff)
Autocommit at 05.05.2022 @ 13:18
3 files changed, 6 insertions, 1 deletions
-rw-r--r--src/Venue/Venue.cpp2
-rw-r--r--src/Venue/Venue.h1
-rw-r--r--src/VenueConsoleUI.cpp4
diff --git a/src/Venue/Venue.cpp b/src/Venue/Venue.cpp
index 380bb69..e33af61 100644
--- a/src/Venue/Venue.cpp
+++ b/src/Venue/Venue.cpp
@@ -1,5 +1,7 @@
#include "Venue.h"
+Venue::Venue() : halls(), es() {}
+
Venue::Venue(const Hall* halls, unsigned hallCount, const EventSystem& es) {
this->halls = List<Hall>(halls, hallCount);
this->es = es;
diff --git a/src/Venue/Venue.h b/src/Venue/Venue.h
index b258014..8c4452a 100644
--- a/src/Venue/Venue.h
+++ b/src/Venue/Venue.h
@@ -10,6 +10,7 @@ class Venue {
EventSystem es;
public:
+ Venue();
Venue(const Hall* halls, unsigned hallCount, const EventSystem& es);
bool hallExists(const Hall& hall) const;
diff --git a/src/VenueConsoleUI.cpp b/src/VenueConsoleUI.cpp
index cb73c14..9cabbab 100644
--- a/src/VenueConsoleUI.cpp
+++ b/src/VenueConsoleUI.cpp
@@ -2,6 +2,8 @@
#include "ConsoleInterface/Menu.h"
#include "ConsoleInterface/Toolbox.hpp"
+Venue v;
+
void runUI(Venue& venue) {
-
+ v = venue;
}