|
FMI Ticket System
| Kamen Mladenov | FMI Computer Science Year 1 Group 6 | Project 1 | Project Topic 4 |
|
Stores the declaration of class Event. More...
#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>Go to the source code of this file.
Classes | |
| class | Event |
| Stores an event's hall, name, date, bought tickets and reservations. More... | |
Functions | |
| std::istream & | operator>> (std::istream &istr, Event &event) |
| Reads Event from stream with >> operator. More... | |
| void | configureEventInsertionOp (unsigned setting) |
| Configures how Event should be shown, when written to stream with << operator. More... | |
| std::ostream & | operator<< (std::ostream &ostr, const Event &event) |
| Writes Event to stream with << operator. More... | |
Stores the declaration of class Event.
| void configureEventInsertionOp | ( | unsigned | setting | ) |
Configures how Event should be shown, when written to stream with << operator.
| setting | A number, defining the different options. It's best if it is passed as binary number. |
Sets a configuration setting for how operator<< should behave. Setting is stored as a global variable in the cpp file, so it's independent of Event instance.
Each bit in the number is a certain setting. Each bit from left to right represents one of these options, from top to bottom:
| std::ostream & operator<< | ( | std::ostream & | ostr, |
| const Event & | event | ||
| ) |
Writes Event to stream with << operator.
Uses the stream's << operator to write all internal data, following setting from configureEventInsertionOp() Stored types must have defined operator <<.