blob: d238ec20ccc94ef317af3894ad0e75078cb7137a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
#include "Event.h"
#include "Reservation.h"
Event::Event() : Event(nullptr, "", Date()) {}
Event::Event(const Hall* hall, String name, Date date) : tickets(), reservations() {
this->hall = hall;
this->name = name;
this->date = date;
}
const OrderedList<Ticket>& Event::get_tickets() const {
return tickets;
}
const OrderedList<Reservation>& Event::get_reservations() const {
return reservations;
}
const Hall& Event::get_hall() const {
return *hall;
}
const String& Event::get_name() const {
return name;
}
const Date& Event::get_date() const {
return date;
}
int Event::compare(const Event& other) {
return name.compare(other.name);
}
|