From 35831ff8dc30c9884a7c3340414f005a0d4ada10 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Thu, 12 May 2022 20:21:09 +0300 Subject: Completely reworked documentation --- docs/html/Event_8h_source.html | 141 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 141 insertions(+) create mode 100644 docs/html/Event_8h_source.html (limited to 'docs/html/Event_8h_source.html') diff --git a/docs/html/Event_8h_source.html b/docs/html/Event_8h_source.html new file mode 100644 index 0000000..fd176b2 --- /dev/null +++ b/docs/html/Event_8h_source.html @@ -0,0 +1,141 @@ + + + + + + + +FMI Ticket System: src/Models/Event.h Source File + + + + + + + + + +
+
+ + + + + + +
+
FMI Ticket System +
+
| Kamen Mladenov | FMI Computer Science Year 1 Group 6 | Project 1 | Project Topic 4 |
+
+
+ + + + + + + + +
+
+ + +
+ +
+ + +
+
+
Event.h
+
+
+Go to the documentation of this file.
1#ifndef HEADER_MODEL_EVENT
+
2#define HEADER_MODEL_EVENT
+
3
+
8#include "../Generic/List/OrderedList.hpp"
+
9#include "../Generic/Date/Date.h"
+
10#include "../Generic/String/String.h"
+
11#include "Hall.h"
+
12#include "Ticket.h"
+
13#include "Reservation.h"
+
14#include <istream>
+
15#include <ostream>
+
16
+
19class Event {
+
20 Hall hall;
+
21 String name;
+
22 Date date;
+
23 OrderedList<Ticket> tickets;
+
24 OrderedList<Reservation> reservations;
+
25
+
26public:
+
28 Event();
+
30 Event(const Hall& hall, String name, Date date);
+
31
+
33 const Hall& get_hall() const;
+
35 const String& get_name() const;
+
37 const Date& get_date() const;
+
38
+ +
42 const OrderedList<Ticket>& get_tickets() const;
+ + +
47
+
49 void read(std::istream& istr);
+
51 void write(std::ostream& ostr);
+
53 int compare(const Event& other);
+
54};
+
55
+
57std::istream& operator>>(std::istream& istr, Event& event);
+
59void configureEventInsertionOp(unsigned setting);
+
61std::ostream& operator<<(std::ostream& ostr, const Event& event);
+
62
+
63#endif
+
std::ostream & operator<<(std::ostream &ostr, const Event &event)
Writes Event to stream with << operator.
Definition: Event.cpp:130
+
std::istream & operator>>(std::istream &istr, Event &event)
Reads Event from stream with >> operator.
Definition: Event.cpp:86
+
void configureEventInsertionOp(unsigned setting)
Configures how Event should be shown, when written to stream with << operator.
Definition: Event.cpp:120
+
Stores the declaration of class Hall.
+
Stores the declaration of class Reservation.
+
Stores the declaration of class Ticket.
+
Stores a day, month and year.
Definition: Date.h:14
+
Stores an event's hall, name, date, bought tickets and reservations.
Definition: Event.h:19
+
void write(std::ostream &ostr)
Writes Event to stream.
Definition: Event.cpp:64
+
OrderedList< Ticket > & get_tickets()
Returns reference to bought tickets.
Definition: Event.cpp:12
+
const Date & get_date() const
Returns constant reference to date on which event will be held.
Definition: Event.cpp:36
+
OrderedList< Reservation > & get_reservations()
Returns reference to reservations.
Definition: Event.cpp:20
+
Event()
Calls default constructors on data.
Definition: Event.cpp:4
+
const String & get_name() const
Returns constant reference to name of event.
Definition: Event.cpp:32
+
const Hall & get_hall() const
Returns constant reference Hall in which event will be held.
Definition: Event.cpp:28
+
void read(std::istream &istr)
Reads Event from stream.
Definition: Event.cpp:48
+
int compare(const Event &other)
Compares two events.
Definition: Event.cpp:74
+
Each hall contains a number, rows and seats per row.
Definition: Hall.h:13
+ +
Definition: String.h:11
+
+ + + + -- cgit v1.3.1-24-g4456