Website Summary Files Commits Branches @commit @diff @stats
path: root / src / Services / HallService.h
diff options
context:
space:
mode:
Commitb3d493796c97178f597ecf97e7c1ae46e566fe9c (patch)
Author
 Syndamia <kamen.d.mladenov@protonmail.com>
2022-05-08 21:24:07 +0300
Committer
 Syndamia <kamen.d.mladenov@protonmail.com>
2022-05-08 21:24:07 +0300
Filescd7364f8d9f6e8ed7da87363e5e04c47ca02e8b1 /src/Services/HallService.h
FMI-OOP-P1_TicketSystem-b3d493796c97178f597ecf97e7c1ae46e566fe9c.tar
FMI-OOP-P1_TicketSystem-b3d493796c97178f597ecf97e7c1ae46e566fe9c.tar.gz
FMI-OOP-P1_TicketSystem-b3d493796c97178f597ecf97e7c1ae46e566fe9c.zip
Parentbf7689ba06764b72a6212549a5c8a39e294cceee (diff)
Fully documented everything in Services
1 files changed, 10 insertions, 0 deletions
-rw-r--r--src/Services/HallService.h10
diff --git a/src/Services/HallService.h b/src/Services/HallService.h
index cad02d3..09bda89 100644
--- a/src/Services/HallService.h
+++ b/src/Services/HallService.h
@@ -1,19 +1,29 @@
#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();
};