blob: 280f24c4d23ae98d060d2bc12c18ed8ad11ae193 (
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
35
36
37
38
39
|
#ifndef HEADER_EVENTSYSTEM_EVENT
#define HEADER_EVENTSYSTEM_EVENT
#include "../Generic/List/OrderedList.hpp"
#include "../Generic/Date/Date.h"
#include "../Generic/String/String.h"
#include "Hall.h"
#include "Ticket.h"
#include "Reservation.h"
#include <istream>
#include <ostream>
class Event {
Hall hall;
String name;
Date date;
OrderedList<Ticket> tickets;
OrderedList<Reservation> reservations;
public:
Event();
Event(const Hall& hall, String name, Date date);
const Hall& get_hall() const;
const String& get_name() const;
const Date& get_date() const;
OrderedList<Ticket>& get_tickets();
OrderedList<Reservation>& get_reservations();
void write(std::ostream& ostr);
void read(std::istream& istr);
int compare(const Event& other);
friend std::istream& operator>>(std::istream& istr, Event& event);
friend std::ostream& operator<<(std::ostream& ostr, const Event& event);
};
#endif
|