diff options
Reorganized whole architecture
27 files changed, 0 insertions, 57 deletions
| -rw-r--r-- | src/Generic/ConsoleInterface/Command.cpp (renamed from src/ConsoleInterface/Command.cpp) | 0 | ||||
| -rw-r--r-- | src/Generic/ConsoleInterface/Command.h (renamed from src/ConsoleInterface/Command.h) | 0 | ||||
| -rw-r--r-- | src/Generic/ConsoleInterface/Menu.cpp (renamed from src/ConsoleInterface/Menu.cpp) | 0 | ||||
| -rw-r--r-- | src/Generic/ConsoleInterface/Menu.h (renamed from src/ConsoleInterface/Menu.h) | 0 | ||||
| -rw-r--r-- | src/Generic/ConsoleInterface/Toolbox.cpp (renamed from src/ConsoleInterface/Toolbox.cpp) | 0 | ||||
| -rw-r--r-- | src/Generic/ConsoleInterface/Toolbox.hpp (renamed from src/ConsoleInterface/Toolbox.hpp) | 0 | ||||
| -rw-r--r-- | src/Generic/Date/Date.cpp (renamed from src/Date/Date.cpp) | 0 | ||||
| -rw-r--r-- | src/Generic/Date/Date.h (renamed from src/Date/Date.h) | 0 | ||||
| -rw-r--r-- | src/Generic/List/List.hpp (renamed from src/List/List.hpp) | 0 | ||||
| -rw-r--r-- | src/Generic/List/OrderedList.hpp (renamed from src/List/OrderedList.hpp) | 0 | ||||
| -rw-r--r-- | src/Generic/String/String.cpp (renamed from src/String/String.cpp) | 0 | ||||
| -rw-r--r-- | src/Generic/String/String.h (renamed from src/String/String.h) | 0 | ||||
| -rw-r--r-- | src/Models/Event.cpp (renamed from src/EventSystem/Event.cpp) | 0 | ||||
| -rw-r--r-- | src/Models/Event.h (renamed from src/EventSystem/Event.h) | 0 | ||||
| -rw-r--r-- | src/Models/Hall.cpp (renamed from src/Venue/Hall.cpp) | 0 | ||||
| -rw-r--r-- | src/Models/Hall.h (renamed from src/Venue/Hall.h) | 0 | ||||
| -rw-r--r-- | src/Models/Reservation.cpp (renamed from src/EventSystem/Reservation.cpp) | 0 | ||||
| -rw-r--r-- | src/Models/Reservation.h (renamed from src/EventSystem/Reservation.h) | 0 | ||||
| -rw-r--r-- | src/Models/Ticket.cpp (renamed from src/EventSystem/Ticket.cpp) | 0 | ||||
| -rw-r--r-- | src/Models/Ticket.h (renamed from src/EventSystem/Ticket.h) | 0 | ||||
| -rw-r--r-- | src/Services/EventSystem.cpp (renamed from src/EventSystem/EventSystem.cpp) | 0 | ||||
| -rw-r--r-- | src/Services/EventSystem.h (renamed from src/EventSystem/EventSystem.h) | 0 | ||||
| -rw-r--r-- | src/Services/StatusCodes.h (renamed from src/EventSystem/StatusCodes.h) | 0 | ||||
| -rw-r--r-- | src/UserInterface/VenueConsoleUI.cpp (renamed from src/VenueConsoleUI.cpp) | 0 | ||||
| -rw-r--r-- | src/UserInterface/VenueConsoleUI.h (renamed from src/VenueConsoleUI.h) | 0 | ||||
| -rw-r--r-- | src/Venue/Venue.cpp | 32 | ||||
| -rw-r--r-- | src/Venue/Venue.h | 25 |
diff --git a/src/ConsoleInterface/Command.cpp b/src/Generic/ConsoleInterface/Command.cpp index d3d058c..d3d058c 100644 --- a/src/ConsoleInterface/Command.cpp +++ b/src/Generic/ConsoleInterface/Command.cpp diff --git a/src/ConsoleInterface/Command.h b/src/Generic/ConsoleInterface/Command.h index d00b277..d00b277 100644 --- a/src/ConsoleInterface/Command.h +++ b/src/Generic/ConsoleInterface/Command.h diff --git a/src/ConsoleInterface/Menu.cpp b/src/Generic/ConsoleInterface/Menu.cpp index 0b27d48..0b27d48 100644 --- a/src/ConsoleInterface/Menu.cpp +++ b/src/Generic/ConsoleInterface/Menu.cpp diff --git a/src/ConsoleInterface/Menu.h b/src/Generic/ConsoleInterface/Menu.h index 2501871..2501871 100644 --- a/src/ConsoleInterface/Menu.h +++ b/src/Generic/ConsoleInterface/Menu.h diff --git a/src/ConsoleInterface/Toolbox.cpp b/src/Generic/ConsoleInterface/Toolbox.cpp index 1f2e42c..1f2e42c 100644 --- a/src/ConsoleInterface/Toolbox.cpp +++ b/src/Generic/ConsoleInterface/Toolbox.cpp diff --git a/src/ConsoleInterface/Toolbox.hpp b/src/Generic/ConsoleInterface/Toolbox.hpp index ed5d6ac..ed5d6ac 100644 --- a/src/ConsoleInterface/Toolbox.hpp +++ b/src/Generic/ConsoleInterface/Toolbox.hpp diff --git a/src/Date/Date.cpp b/src/Generic/Date/Date.cpp index 4732b0c..4732b0c 100644 --- a/src/Date/Date.cpp +++ b/src/Generic/Date/Date.cpp diff --git a/src/Date/Date.h b/src/Generic/Date/Date.h index 5d1ff62..5d1ff62 100644 --- a/src/Date/Date.h +++ b/src/Generic/Date/Date.h diff --git a/src/List/List.hpp b/src/Generic/List/List.hpp index 7088f2e..7088f2e 100644 --- a/src/List/List.hpp +++ b/src/Generic/List/List.hpp diff --git a/src/List/OrderedList.hpp b/src/Generic/List/OrderedList.hpp index 4396d33..4396d33 100644 --- a/src/List/OrderedList.hpp +++ b/src/Generic/List/OrderedList.hpp diff --git a/src/String/String.cpp b/src/Generic/String/String.cpp index 055f48e..055f48e 100644 --- a/src/String/String.cpp +++ b/src/Generic/String/String.cpp diff --git a/src/String/String.h b/src/Generic/String/String.h index 85bb284..85bb284 100644 --- a/src/String/String.h +++ b/src/Generic/String/String.h diff --git a/src/EventSystem/Event.cpp b/src/Models/Event.cpp index e6105eb..e6105eb 100644 --- a/src/EventSystem/Event.cpp +++ b/src/Models/Event.cpp diff --git a/src/EventSystem/Event.h b/src/Models/Event.h index 43ad5d9..43ad5d9 100644 --- a/src/EventSystem/Event.h +++ b/src/Models/Event.h diff --git a/src/Venue/Hall.cpp b/src/Models/Hall.cpp index 98b8cbb..98b8cbb 100644 --- a/src/Venue/Hall.cpp +++ b/src/Models/Hall.cpp diff --git a/src/Venue/Hall.h b/src/Models/Hall.h index bd2f82a..bd2f82a 100644 --- a/src/Venue/Hall.h +++ b/src/Models/Hall.h diff --git a/src/EventSystem/Reservation.cpp b/src/Models/Reservation.cpp index 26278b2..26278b2 100644 --- a/src/EventSystem/Reservation.cpp +++ b/src/Models/Reservation.cpp diff --git a/src/EventSystem/Reservation.h b/src/Models/Reservation.h index 1a415b5..1a415b5 100644 --- a/src/EventSystem/Reservation.h +++ b/src/Models/Reservation.h diff --git a/src/EventSystem/Ticket.cpp b/src/Models/Ticket.cpp index e37cccf..e37cccf 100644 --- a/src/EventSystem/Ticket.cpp +++ b/src/Models/Ticket.cpp diff --git a/src/EventSystem/Ticket.h b/src/Models/Ticket.h index 5d26e35..5d26e35 100644 --- a/src/EventSystem/Ticket.h +++ b/src/Models/Ticket.h diff --git a/src/EventSystem/EventSystem.cpp b/src/Services/EventSystem.cpp index 95bd1c4..95bd1c4 100644 --- a/src/EventSystem/EventSystem.cpp +++ b/src/Services/EventSystem.cpp diff --git a/src/EventSystem/EventSystem.h b/src/Services/EventSystem.h index 4eeac61..4eeac61 100644 --- a/src/EventSystem/EventSystem.h +++ b/src/Services/EventSystem.h diff --git a/src/EventSystem/StatusCodes.h b/src/Services/StatusCodes.h index 4068cd3..4068cd3 100644 --- a/src/EventSystem/StatusCodes.h +++ b/src/Services/StatusCodes.h diff --git a/src/VenueConsoleUI.cpp b/src/UserInterface/VenueConsoleUI.cpp index 65e5240..65e5240 100644 --- a/src/VenueConsoleUI.cpp +++ b/src/UserInterface/VenueConsoleUI.cpp diff --git a/src/VenueConsoleUI.h b/src/UserInterface/VenueConsoleUI.h index f96076a..f96076a 100644 --- a/src/VenueConsoleUI.h +++ b/src/UserInterface/VenueConsoleUI.h diff --git a/src/Venue/Venue.cpp b/src/Venue/Venue.cpp deleted file mode 100644 index 01c6a95..0000000 --- a/src/Venue/Venue.cpp +++ /dev/null @@ -1,32 +0,0 @@ -#include "Venue.h" - -Venue::Venue() : halls(), es() {} - -Venue::Venue(const Hall* halls, unsigned hallCount) : es() { - this->halls = List<Hall>(halls, hallCount); -} - -Venue::Venue(const Hall* halls, unsigned hallCount, const EventSystem& es) { - this->halls = List<Hall>(halls, hallCount); - this->es = es; -} - -bool Venue::hallExists(unsigned hallIndex) const { - return halls.contain(Hall(hallIndex, 0, 0)); -} - -bool Venue::hallExists(const Hall& hall) const { - return this->halls.contain(hall); -} - -const List<Hall>& Venue::get_halls() const { - return this->halls; -} - -const Hall& Venue::getHall(unsigned hallIndex) const { - return this->halls[this->halls.findIndex(Hall(hallIndex, 0, 0))]; -} - -EventSystem& Venue::get_es() { - return this->es; -} diff --git a/src/Venue/Venue.h b/src/Venue/Venue.h deleted file mode 100644 index 8c0f53e..0000000 --- a/src/Venue/Venue.h +++ /dev/null @@ -1,25 +0,0 @@ -#ifndef HEADER_VENUE -#define HEADER_VENUE - -#include "../List/List.hpp" -#include "Hall.h" -#include "../EventSystem/EventSystem.h" - -class Venue { - List<Hall> halls; - EventSystem es; - -public: - Venue(); - Venue(const Hall* halls, unsigned hallCount); - Venue(const Hall* halls, unsigned hallCount, const EventSystem& es); - - bool hallExists(unsigned hallIndex) const; - bool hallExists(const Hall& hall) const; - - const List<Hall>& get_halls() const; - const Hall& getHall(unsigned hallIndex) const; - EventSystem& get_es(); -}; - -#endif |
