summaryrefslogtreecommitdiff
path: root/src/archive/ZWrapper.h
blob: d1fe86773fa696aabe6a382ac40eeacfd25b7b5b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#pragma once

#include <vector>
#include <string>
#include "BinaryWrapper.h"

namespace miniz_cpp {
class zip_file;
}

class ZWrapper : public BinaryWrapper {
public:
    explicit ZWrapper(const std::string& path);

    int32_t CreateArchive(void) override;
    bool AddFile(const std::string& path, std::vector<char> data) override;
    int32_t Close(void) override;

    miniz_cpp::zip_file* mZip;
};