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