diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-10-27 19:33:45 +0100 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-10-27 19:33:45 +0100 |
commit | b2fc208fbdb55ecc3cba59e2dd51976ce829a4be (patch) | |
tree | 1a60e74b7533403831868b04943978987cec2c75 /src/crepe/api/SaveManager.h | |
parent | ecc5761fa78ccb57db958467c3fc999aceadd409 (diff) |
WIP db facade
Diffstat (limited to 'src/crepe/api/SaveManager.h')
-rw-r--r-- | src/crepe/api/SaveManager.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/crepe/api/SaveManager.h b/src/crepe/api/SaveManager.h index 78cd4ba..110735d 100644 --- a/src/crepe/api/SaveManager.h +++ b/src/crepe/api/SaveManager.h @@ -1,7 +1,13 @@ #pragma once +#include <memory> + #include "../ValueBroker.h" +namespace crepe { +class DB; +} + namespace crepe::api { class SaveManager { @@ -22,7 +28,7 @@ public: bool has(const char * key); private: - SaveManager() = default; + SaveManager(); virtual ~SaveManager() = default; public: @@ -32,6 +38,9 @@ public: SaveManager(SaveManager &&) = delete; SaveManager & operator = (const SaveManager &) = delete; SaveManager & operator = (SaveManager &&) = delete; + +private: + std::unique_ptr<DB> db = nullptr; }; } |