diff options
Diffstat (limited to 'src/managers/VersionKeeperManager.hpp')
-rw-r--r-- | src/managers/VersionKeeperManager.hpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/managers/VersionKeeperManager.hpp b/src/managers/VersionKeeperManager.hpp new file mode 100644 index 00000000..f0dc05ce --- /dev/null +++ b/src/managers/VersionKeeperManager.hpp @@ -0,0 +1,17 @@ +#pragma once + +#include <memory> +#include <optional> + +class CVersionKeeperManager { + public: + CVersionKeeperManager(); + + private: + std::optional<std::string> getDataHome(); + std::optional<std::string> getDataLastVersion(const std::string& dataRoot); + void writeVersionToVersionFile(const std::string& dataRoot); + bool isVersionOlderThanRunning(const std::string& ver); +}; + +inline std::unique_ptr<CVersionKeeperManager> g_pVersionKeeperMgr;
\ No newline at end of file |