Website Summary Files Commits Branches @commit @diff @stats
path: root / src
diff options
context:
space:
mode:
Commit27e25fa55f21842d819072bc5650a61088a5511a (patch)
Author
 Syndamia <kamen.d.mladenov@protonmail.com>
2022-05-02 20:20:10 +0300
Committer
 Syndamia <kamen.d.mladenov@protonmail.com>
2022-05-02 20:20:10 +0300
Files15f2f2690e1a903dc39445d365d090697160d0e2 /src
FMI-OOP-P1_TicketSystem-27e25fa55f21842d819072bc5650a61088a5511a.tar
FMI-OOP-P1_TicketSystem-27e25fa55f21842d819072bc5650a61088a5511a.tar.gz
FMI-OOP-P1_TicketSystem-27e25fa55f21842d819072bc5650a61088a5511a.zip
Parent5a562ba407ffe0a9af3cd7c22f777a2707362684 (diff)
Autocommit at 02.05.2022 @ 20:20
5 files changed, 13 insertions, 0 deletions
-rw-r--r--src/.!lazygit.swobin24576 -> 24576 bytes
-rw-r--r--src/EventSystem/Event.h13
-rw-r--r--src/Venue/Hall.cpp (renamed from src/Hall.cpp)0
-rw-r--r--src/Venue/Hall.h (renamed from src/Hall.h)0
-rw-r--r--src/Venue/Venue.h (renamed from src/Venue.h)0
diff --git a/src/.!lazygit.swo b/src/.!lazygit.swo
index 31f9b38..d472609 100644
--- a/src/.!lazygit.swo
+++ b/src/.!lazygit.swo
Binary files differ
diff --git a/src/EventSystem/Event.h b/src/EventSystem/Event.h
index fc717cd..81931d0 100644
--- a/src/EventSystem/Event.h
+++ b/src/EventSystem/Event.h
@@ -4,12 +4,25 @@
#include "../List/List.h"
#include "../DateTime/DateTime.h"
#include "../String/String.h"
+#include "../Venue/Hall.h"
#include "Ticket.h"
#include "Reservation.h"
+#include "StatusCodes.h"
class Event {
List<Ticket> tickets;
List<Reservation> reservations;
+ DateTime time;
+ String name;
+ Hall* hall;
+
+public:
+ Event();
+ Event(const Hall* hall, String name, DateTime time);
+
+ StatusCode reserveTicket();
+ StatusCode cancelReservation();
+ StatusCode buyReservation();
};
#endif
diff --git a/src/Hall.cpp b/src/Venue/Hall.cpp
index b542c9b..b542c9b 100644
--- a/src/Hall.cpp
+++ b/src/Venue/Hall.cpp
diff --git a/src/Hall.h b/src/Venue/Hall.h
index 7344d86..7344d86 100644
--- a/src/Hall.h
+++ b/src/Venue/Hall.h
diff --git a/src/Venue.h b/src/Venue/Venue.h
index b48b238..b48b238 100644
--- a/src/Venue.h
+++ b/src/Venue/Venue.h