32 const std::string& errMessage,
33 const std::string& log_location,
34 int32_t expectedStatus = MZ_OK):
35 std::runtime_error(log_location + errMessage +
"\ninvalid status: " + std::to_string(status)
36 +
" (" + std::to_string(expectedStatus) +
" expected)")
41 std::runtime_error(log_location + errMessage)
52 std::filesystem::path archivePath_;
55 mutable std::shared_mutex mutex_;
57 virtual void Create() = 0;
60 explicit ArchiveIO(
const std::filesystem::path& archivePath):
61 archivePath_(archivePath)
68 std::filesystem::path ArchivePath()
const
73 void SetArchivePath(
const std::filesystem::path& archivePath)
75 archivePath_ = archivePath;
78 virtual int32_t Close() = 0;
79 virtual void Delete() = 0;
81 virtual int Open() = 0;
82 virtual void* InternalPointer()
const = 0;