Website Summary Files Commits Branches @commit @diff @stats
path: root / src / EventSystem
diff options
context:
space:
mode:
Commit125d17baddbb94971015b2ad603102c5d95bed15 (patch)
Author
 Syndamia <kamen.d.mladenov@protonmail.com>
2022-05-01 10:51:24 +0300
Committer
 Syndamia <kamen.d.mladenov@protonmail.com>
2022-05-01 10:51:24 +0300
Files56dcc90d6b8858ac9f88cd1ae321d96905757dcd /src/EventSystem
FMI-OOP-P1_TicketSystem-125d17baddbb94971015b2ad603102c5d95bed15.tar
FMI-OOP-P1_TicketSystem-125d17baddbb94971015b2ad603102c5d95bed15.tar.gz
FMI-OOP-P1_TicketSystem-125d17baddbb94971015b2ad603102c5d95bed15.zip
Parentf71df43abce2be251d194dade0ebf07485b54eea (diff)
Autocommit at 01.05.2022 @ 10:51
2 files changed, 14 insertions, 2 deletions
-rw-r--r--src/EventSystem/EventSystem.h12
-rw-r--r--src/EventSystem/StatusCodes.h4
diff --git a/src/EventSystem/EventSystem.h b/src/EventSystem/EventSystem.h
index b2be837..787384b 100644
--- a/src/EventSystem/EventSystem.h
+++ b/src/EventSystem/EventSystem.h
@@ -2,6 +2,7 @@
#define HEADER_EVENTSYSTEM
#include "../List/List.h"
+#include "../DateTime/DateTime.h"
#include "Event.h"
#include "StatusCodes.h"
@@ -13,7 +14,16 @@ class EventSystem {
public:
EventSystem(const Event* events, unsigned eventCount);
-
+ StatusCode createEvent();
+ StatusCode cancelEvent();
+
+ StatusCode reserveTicket(char* note, DateTime time, unsigned seatRow, unsigned seatColumn);
+ StatusCode cancelTicketReservation();
+ StatusCode buyTicket();
+
+ void queryUpcoming(unsigned hallIndex);
+ unsigned queryFreeSeats(const Event& event);
+ void queryReservations(const Event& event);
};
#endif
diff --git a/src/EventSystem/StatusCodes.h b/src/EventSystem/StatusCodes.h
index 6b4f4ee..f60874a 100644
--- a/src/EventSystem/StatusCodes.h
+++ b/src/EventSystem/StatusCodes.h
@@ -3,7 +3,9 @@
enum StatusCode {
Ok,
- Error,
+
+ E_Generic,
+ E_DoesntExist,
E_EventWillOverlap,
};