aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/api/Config.h
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-11-07 18:57:04 +0100
committerLoek Le Blansch <loek@pipeframe.xyz>2024-11-07 18:57:04 +0100
commit9df087ede0b539ecbd2778236c7d1143362b384d (patch)
tree01a1c0c46da3a09137fcb9ca6e613fd1148f4df1 /src/crepe/api/Config.h
parente36ea050972fcaaf3d85d672755bad4ebb2dcd80 (diff)
check code standard
Diffstat (limited to 'src/crepe/api/Config.h')
-rw-r--r--src/crepe/api/Config.h18
1 files changed, 13 insertions, 5 deletions
diff --git a/src/crepe/api/Config.h b/src/crepe/api/Config.h
index 4e6d1fa..bbcca87 100644
--- a/src/crepe/api/Config.h
+++ b/src/crepe/api/Config.h
@@ -7,16 +7,17 @@ namespace crepe {
class Config {
private:
Config() = default;
-
public:
~Config() = default;
public:
//! Retrieve handle to global Config instance
- static Config & get_instance() {
- static Config instance;
- return instance;
- }
+ static Config & get_instance();
+ // singleton
+ Config(const Config &) = delete;
+ Config(Config &&) = delete;
+ Config & operator = (const Config &) = delete;
+ Config & operator = (Config &&) = delete;
public:
//! Logging-related settings
@@ -38,8 +39,15 @@ public:
//! Save manager
struct {
+ /**
+ * \brief Save file location
+ *
+ * This location is used by the constructor of SaveManager, and should be
+ * set before save manager functionality is attempted to be used.
+ */
std::string location = "save.crepe.db";
} savemgr;
};
} // namespace crepe
+