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/Ticket_8h_source.html | 114 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 114 insertions(+) create mode 100644 docs/html/Ticket_8h_source.html (limited to 'docs/html/Ticket_8h_source.html') diff --git a/docs/html/Ticket_8h_source.html b/docs/html/Ticket_8h_source.html new file mode 100644 index 0000000..1d9c133 --- /dev/null +++ b/docs/html/Ticket_8h_source.html @@ -0,0 +1,114 @@ + + + + + + + +FMI Ticket System: src/Models/Ticket.h Source File + + + + + + + + + +
+
+ + + + + + +
+
FMI Ticket System +
+
| Kamen Mladenov | FMI Computer Science Year 1 Group 6 | Project 1 | Project Topic 4 |
+
+
+ + + + + + + + +
+
+ + +
+ +
+ + +
+
+
Ticket.h
+
+
+Go to the documentation of this file.
1#ifndef HEADER_HEADER_TICKET
+
2#define HEADER_HEADER_TICKET
+
3
+
8#include <istream>
+
9#include <ostream>
+
10
+
13class Ticket {
+
14 unsigned row;
+
15 unsigned seat;
+
16
+
17public:
+
19 Ticket();
+
21 Ticket(unsigned row, unsigned seat);
+
22
+
24 unsigned get_row() const;
+
26 unsigned get_seat() const;
+
27
+
29 void read(std::istream& istr);
+
31 void write(std::ostream& ostr) const;
+
33 int compare(const Ticket& other) const;
+
34};
+
35
+
37std::istream& operator>>(std::istream& istr, Ticket& ticket);
+
39std::ostream& operator<<(std::ostream& ostr, const Ticket& ticket);
+
40
+
41#endif
+
std::istream & operator>>(std::istream &istr, Ticket &ticket)
Reads Ticket from stream with >> operator.
Definition: Ticket.cpp:57
+
std::ostream & operator<<(std::ostream &ostr, const Ticket &ticket)
Writes Ticket to stream with << operator.
Definition: Ticket.cpp:69
+
Each Ticket contains a row and a seat number.
Definition: Ticket.h:13
+
void write(std::ostream &ostr) const
Writes Ticket to stream.
Definition: Ticket.cpp:37
+
int compare(const Ticket &other) const
Compares two Tickets.
Definition: Ticket.cpp:44
+
unsigned get_row() const
Returns row.
Definition: Ticket.cpp:10
+
void read(std::istream &istr)
Reads Ticket from stram.
Definition: Ticket.cpp:25
+
Ticket()
Sets row and seat to zeroes.
Definition: Ticket.cpp:3
+
unsigned get_seat() const
Returns seat.
Definition: Ticket.cpp:14
+
+ + + + -- cgit v1.3.1-26-gb76a