blob: 927b11a3a7f7a750bb0e4cc1c47714a62da2d6da (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#include "Reservation.h"
#include <cstring>
Reservation::Reservation() : Reservation(Ticket(), "", "") {}
Reservation::Reservation(const Ticket& ticket, const char* password, const char* note) {
this->ticket = ticket;
strcpy(this->password, password);
strcpy(this->note, note);
}
void Reservation::read(std::istream& istr) {
ticket.read(istr);
istr.read(password, sizeof(char) * 8);
istr.read(note, sizeof(char) * 32);
}
|