From 24bdf39e6c21ab846f6c86803761d78a094e05c0 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Thu, 26 May 2022 20:31:26 +0300 Subject: Added files from project 1 (mirror) --- .../Project 1/docs/html/classHall.html | 206 +++++++++++++++++++++ 1 file changed, 206 insertions(+) create mode 100644 Year 1/Object-oriented Programming/Project 1/docs/html/classHall.html (limited to 'Year 1/Object-oriented Programming/Project 1/docs/html/classHall.html') diff --git a/Year 1/Object-oriented Programming/Project 1/docs/html/classHall.html b/Year 1/Object-oriented Programming/Project 1/docs/html/classHall.html new file mode 100644 index 0000000..2d9b2d2 --- /dev/null +++ b/Year 1/Object-oriented Programming/Project 1/docs/html/classHall.html @@ -0,0 +1,206 @@ + + + + + + + +FMI Ticket System: Hall Class Reference + + + + + + + + + +
+
+ + + + + + +
+
FMI Ticket System +
+
| Kamen Mladenov | FMI Computer Science Year 1 Group 6 | Project 1 | Project Topic 4 |
+
+
+ + + + + + + + +
+
+ + +
+ +
+ +
+
+ +
Hall Class Reference
+
+
+ +

Each hall contains a number, rows and seats per row. + More...

+ +

#include <Hall.h>

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Public Member Functions

+ Hall ()
 Sets values to 0.
 
+ Hall (int number)
 Sets values, except number, to 0.
 
+ Hall (int number, unsigned rows, unsigned seatsPerRow)
 Sets values.
 
+int get_number () const
 Returns a Hall's number.
 
+unsigned get_rows () const
 Returns a Hall's row count.
 
+unsigned get_seatsPerRow () const
 Return a Hall's seats per row count.
 
void read (std::istream &istr)
 Reads Hall from stream. More...
 
void write (std::ostream &ostr) const
 Writes Hall to steam. More...
 
int compare (const Hall &other) const
 Compare two Halls. More...
 
+

Detailed Description

+

Each hall contains a number, rows and seats per row.

+

Member Function Documentation

+ +

◆ compare()

+ +
+
+ + + + + + + + +
int Hall::compare (const Hall & other) const
+
+ +

Compare two Halls.

+
Returns
-1 if number < other.number, 1 if number > other.number, 0 if number == other.number
+ +
+
+ +

◆ read()

+ +
+
+ + + + + + + + +
void Hall::read (std::istream & istr)
+
+ +

Reads Hall from stream.

+
Parameters
+ + +
istrAn input stream
+
+
+

Directly reads bytes from stream (calls read() function).

+
Remarks
Doesn't alter the stream in any other way.
+
Note
Best used with binary ifstream
+ +
+
+ +

◆ write()

+ +
+
+ + + + + + + + +
void Hall::write (std::ostream & ostr) const
+
+ +

Writes Hall to steam.

+
Parameters
+ + +
ostrAn output stream
+
+
+

Directly writes bytes to stream (calls write() function).

+
Remarks
Doesn't alter the stream in any other way.
+
Note
Best used with binary ofstream
+ +
+
+
The documentation for this class was generated from the following files: +
+ + + + -- cgit v1.3.1-23-gd82d