c0e249e993
This reverts commitdaf3b57e89
, reversing changes made to7a6e0b7d77
.
21 lines
No EOL
402 B
C++
21 lines
No EOL
402 B
C++
#pragma once
|
|
#include "stdafx.h"
|
|
#include "miniz.h"
|
|
|
|
class ZipWriter
|
|
{
|
|
private:
|
|
mz_zip_archive _zipArchive;
|
|
string _zipFilename;
|
|
|
|
public:
|
|
ZipWriter();
|
|
~ZipWriter();
|
|
|
|
bool Initialize(string filename);
|
|
bool Save();
|
|
|
|
void AddFile(string filepath, string zipFilename);
|
|
void AddFile(vector<uint8_t> &fileData, string zipFilename);
|
|
void AddFile(std::stringstream &filestream, string zipFilename);
|
|
}; |