EHM DAL 0.2.3
Data abstraction layer for Eastside Hockey Manager
Loading...
Searching...
No Matches
saved_game.h
1#pragma once
2
3
4// Application headers
5namespace ehm_dal::saved_game {
6class SavedGameData;
7};
8
9// Qt headers
10class QString;
11#include <memory>
12
13namespace ehm_dal {
21{
22public:
31
32 // Close saved game
36 void clearAll();
37
38 // File i/o
44 bool read(const QString &file_path);
45
46 // Get data
51 static std::shared_ptr<ehm_dal::saved_game::SavedGameData> data();
52
53private:
54 static std::shared_ptr<ehm_dal::saved_game::SavedGameData> data_;
55
56 // Initialisation
57 void init();
58};
59
60} // namespace ehm_dal
61
62
The SavedGame class parses uncompressed EHM .sav saved games.
Definition: saved_game.h:21
SavedGame()
Default constructor.
bool read(const QString &file_path)
Reads the .sav file at file_path and parses the saved game and the Database within.
void clearAll()
Clear all of the saved game tables.
static std::shared_ptr< ehm_dal::saved_game::SavedGameData > data()
Returns the saved game data comprising saved game sub-files.
~SavedGame()
Default destructor.
namespace ehm_dal::saved_game
Definition: saved_game_data.h:13