|
FMI Ticket System
| Kamen Mladenov | FMI Computer Science Year 1 Group 6 | Project 1 | Project Topic 4 |
|
Each HallService stores all halls. More...
#include <HallService.h>
Public Member Functions | |
| HallService (const Hall *halls, unsigned hallCount) | |
| Copies halls from parameters. | |
| const OrderedList< Hall > & | get_halls () const |
| Returns a constant reference to halls. | |
| StatusCode | load () |
| Loads Halls to a database file. More... | |
| StatusCode | save () |
| Saves Halls to a database file. More... | |
Each HallService stores all halls.
| StatusCode HallService::load | ( | ) |
Loads Halls to a database file.
Looks for file named "hallsDatabse.fmits", which is just a binary file, and then reads it with the "read" function in events List.
| StatusCode HallService::save | ( | ) |
Saves Halls to a database file.
Looks for file named "hallsDatabse.fmits", which is just a binary file, and then writes to it with the "write" function in events List.