|
FMI Ticket System
| Kamen Mladenov | FMI Computer Science Year 1 Group 6 | Project 1 | Project Topic 4 |
|
Stores an event's hall, name, date, bought tickets and reservations. More...
#include <Event.h>
Public Member Functions | |
| Event () | |
| Calls default constructors on data. | |
| Event (const Hall &hall, String name, Date date) | |
| Copies given hall and sets name and date. | |
| const Hall & | get_hall () const |
| Returns constant reference Hall in which event will be held. | |
| const String & | get_name () const |
| Returns constant reference to name of event. | |
| const Date & | get_date () const |
| Returns constant reference to date on which event will be held. | |
| OrderedList< Ticket > & | get_tickets () |
| Returns reference to bought tickets. | |
| const OrderedList< Ticket > & | get_tickets () const |
| Returns constant reference to bought tickets. | |
| OrderedList< Reservation > & | get_reservations () |
| Returns reference to reservations. | |
| const OrderedList< Reservation > & | get_reservations () const |
| Returns constant reference to reservations. | |
| void | read (std::istream &istr) |
| Reads Event from stream. More... | |
| void | write (std::ostream &ostr) |
| Writes Event to stream. More... | |
| int | compare (const Event &other) |
| Compares two events. More... | |
Stores an event's hall, name, date, bought tickets and reservations.
| int Event::compare | ( | const Event & | other | ) |
Compares two events.
| void Event::read | ( | std::istream & | istr | ) |
| void Event::write | ( | std::ostream & | ostr | ) |