Website Summary Files Commits Branches @commit @diff @stats
path: root / src
diff options
context:
space:
mode:
Commit5f9c0593858111b073d2d104d7da6d2136365bd3 (patch)
Author
 Syndamia <kamen.d.mladenov@protonmail.com>
2022-05-05 13:03:13 +0300
Committer
 Syndamia <kamen.d.mladenov@protonmail.com>
2022-05-05 13:03:13 +0300
Filesa5eeee3b74d326f0a00287fbe68da2c45550f82a /src
FMI-OOP-P1_TicketSystem-5f9c0593858111b073d2d104d7da6d2136365bd3.tar
FMI-OOP-P1_TicketSystem-5f9c0593858111b073d2d104d7da6d2136365bd3.tar.gz
FMI-OOP-P1_TicketSystem-5f9c0593858111b073d2d104d7da6d2136365bd3.zip
Parentb0f046461b44a0c4002ea667a726403ff4a1a701 (diff)
Autocommit at 05.05.2022 @ 13:03
4 files changed, 14 insertions, 2 deletions
-rw-r--r--src/EventSystem/EventSystem.cpp5
-rw-r--r--src/EventSystem/EventSystem.h1
-rw-r--r--src/Venue/Venue.cpp6
-rw-r--r--src/Venue/Venue.h4
diff --git a/src/EventSystem/EventSystem.cpp b/src/EventSystem/EventSystem.cpp
index 3fe0cd6..8b3e5a2 100644
--- a/src/EventSystem/EventSystem.cpp
+++ b/src/EventSystem/EventSystem.cpp
@@ -8,6 +8,11 @@ void EventSystem::updateSoonestUpcoming() {
/* Public */
+EventSystem::EventSystem() {
+ events = OrderedList<Event>();
+ indSoonestUpcoming = 0;
+}
+
EventSystem::EventSystem(const Event* events, unsigned eventCount) {
this->events = OrderedList<Event>(events, eventCount);
indSoonestUpcoming = 0;
diff --git a/src/EventSystem/EventSystem.h b/src/EventSystem/EventSystem.h
index 79fac10..34b42e4 100644
--- a/src/EventSystem/EventSystem.h
+++ b/src/EventSystem/EventSystem.h
@@ -14,6 +14,7 @@ class EventSystem {
void updateSoonestUpcoming();
public:
+ EventSystem();
EventSystem(const Event* events, unsigned eventCount);
StatusCode createEvent();
diff --git a/src/Venue/Venue.cpp b/src/Venue/Venue.cpp
new file mode 100644
index 0000000..4206afe
--- /dev/null
+++ b/src/Venue/Venue.cpp
@@ -0,0 +1,6 @@
+#include "Venue.h"
+
+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 b48b238..4134ae6 100644
--- a/src/Venue/Venue.h
+++ b/src/Venue/Venue.h
@@ -1,9 +1,9 @@
#ifndef HEADER_VENUE
#define HEADER_VENUE
-#include "List/List.h"
+#include "../List/List.hpp"
#include "Hall.h"
-#include "EventSystem/EventSystem.h"
+#include "../EventSystem/EventSystem.h"
class Venue {
List<Hall> halls;