From b0f046461b44a0c4002ea667a726403ff4a1a701 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Wed, 4 May 2022 10:58:48 +0300 Subject: Moved templated stuff into hpp files and added a blank main.cpp file --- src/EventSystem/Reservation.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/EventSystem/Reservation.cpp') diff --git a/src/EventSystem/Reservation.cpp b/src/EventSystem/Reservation.cpp index 4cc716e..26278b2 100644 --- a/src/EventSystem/Reservation.cpp +++ b/src/EventSystem/Reservation.cpp @@ -12,6 +12,14 @@ Reservation::Reservation(const Ticket& ticket, const char* password, const char* strcpy(this->note, note); } +bool Reservation::validPassword(const char* password) const { + return !strcmp(this->password, password); +} + +const Ticket& Reservation::get_ticket() const { + return ticket; +} + void Reservation::read(std::istream& istr) { ticket.read(istr); istr.read(password, sizeof(password)); -- cgit v1.3.1-23-gd82d