blob: 09bda895b635c6b744d3153e1a975292f7729c38 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
#ifndef HEADER_SERVICES_HALLSERVICE
#define HEADER_SERVICES_HALLSERVICE
/*! \file HallService.h
* \brief Stores the declaration of class HallService
*/
#include "../Generic/List/OrderedList.hpp"
#include "../Models/Hall.h"
#include "StatusCode.h"
/*! \brief Each HallService stores all halls
*/
class HallService {
OrderedList<Hall> halls;
public:
//! Copies halls from parameters
HallService(const Hall* halls, unsigned hallCount);
//! Returns a constant reference to halls
const OrderedList<Hall>& get_halls() const;
//! Loads Halls to a database file
StatusCode load();
//! Saves Halls to a database file
StatusCode save();
};
#endif
|