FMI Ticket System
| Kamen Mladenov | FMI Computer Science Year 1 Group 6 | Project 1 | Project Topic 4 |
Public Member Functions | List of all members
HallService Class Reference

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...
 

Detailed Description

Each HallService stores all halls.

Member Function Documentation

◆ load()

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.

Returns
E_FileCouldNotBeOpened if The files couldn't be opened/Doesn't exist
Success otherwise

◆ save()

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.

Returns
E_FileCouldNotBeOpened if The files couldn't be opened
Success otherwise

The documentation for this class was generated from the following files: