blob: b5430824e2f961a3d96adc53a29d89726c3d08e3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#pragma once
#include <vector>
#include <string>
#include "BinaryWrapper.h"
struct mz_zip_archive_tag;
class ZWrapper : public BinaryWrapper {
public:
explicit ZWrapper(const std::string& path);
~ZWrapper() override;
int32_t CreateArchive(void) override;
bool AddFile(const std::string& path, std::vector<char> data) override;
int32_t Close(void) override;
private:
struct mz_zip_archive_tag* mZip = nullptr;
std::string mTempPath;
bool mOpen = false;
bool mFinalized = false;
};
|