FMI Ticket System
| Kamen Mladenov | FMI Computer Science Year 1 Group 6 | Project 1 | Project Topic 4 |
Classes | Functions
Hall.h File Reference

Stores the declaration of class Hall. More...

#include <istream>
#include <ostream>

Go to the source code of this file.

Classes

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

Functions

std::istream & operator>> (std::istream &istr, Hall &hall)
 Reads Hall from stream with >> operator. More...
 
std::ostream & operator<< (std::ostream &ostr, const Hall &hall)
 Writes Hall to stream with << operator. More...
 

Detailed Description

Stores the declaration of class Hall.

Function Documentation

◆ operator<<()

std::ostream & operator<< ( std::ostream &  ostr,
const Hall &  hall 
)

Writes Hall to stream with << operator.

Uses the stream's << operator to write all internal data.

Note
Best used with std::cout or text std::ofstream

◆ operator>>()

std::istream & operator>> ( std::istream &  istr,
Hall &  hall 
)

Reads Hall from stream with >> operator.

Uses the stream's >> operator to read and parse all internal values.

Note
Best used with std::cin or text std::ifstream