diff options
Autocommit at 05.05.2022 @ 13:03
4 files changed, 14 insertions, 2 deletions
| -rw-r--r-- | src/EventSystem/EventSystem.cpp | 5 | ||||
| -rw-r--r-- | src/EventSystem/EventSystem.h | 1 | ||||
| -rw-r--r-- | src/Venue/Venue.cpp | 6 | ||||
| -rw-r--r-- | src/Venue/Venue.h | 4 |
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; |
