blob: 8727939cd0f6b1942b35efeba22c213fd7782cd5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#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;
bool mOpen = false;
};
|