25 const std::string& log_location,
26 int32_t expectedStatus = MZ_OK)
27 : std::runtime_error(log_location + errMessage +
"\ninvalid status: " +
28 std::to_string(status) +
" (" +
29 std::to_string(expectedStatus) +
" expected)") {}
31 const std::string& log_location)
32 : std::runtime_error(log_location + errMessage) {}
38 std::filesystem::path archivePath_;
41 mutable std::shared_mutex mutex_;
43 virtual void Create() = 0;
46 explicit ArchiveIO(
const std::filesystem::path& archivePath)
47 : archivePath_(archivePath) {}
51 std::filesystem::path ArchivePath()
const {
return archivePath_; }
52 void SetArchivePath(
const std::filesystem::path& archivePath) {
53 archivePath_ = archivePath;
56 virtual int32_t Close() = 0;
57 virtual void Delete() = 0;
59 virtual int Open() = 0;
60 virtual void* InternalPointer()
const = 0;