From 5f9c0593858111b073d2d104d7da6d2136365bd3 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Thu, 5 May 2022 13:03:13 +0300 Subject: Autocommit at 05.05.2022 @ 13:03 --- src/EventSystem/EventSystem.cpp | 5 +++++ src/EventSystem/EventSystem.h | 1 + src/Venue/Venue.cpp | 6 ++++++ src/Venue/Venue.h | 4 ++-- 4 files changed, 14 insertions(+), 2 deletions(-) create mode 100644 src/Venue/Venue.cpp (limited to 'src') 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(); + indSoonestUpcoming = 0; +} + EventSystem::EventSystem(const Event* events, unsigned eventCount) { this->events = OrderedList(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(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 halls; -- cgit v1.3.1-26-gb76a