diff options
Moved templated stuff into hpp files and added a blank main.cpp file
1 files changed, 8 insertions, 0 deletions
| -rw-r--r-- | src/EventSystem/Reservation.cpp | 8 |
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)); |
