26 #ifdef CRN_USING_LIBZIP
44 static Zip NewFromFile(
const Path &fname,
bool check_consistency =
true);
46 static Zip Create(
const Path &fname,
bool overwrite,
bool check_consistency =
true);
49 Zip(
const Zip&) =
delete;
50 Zip(Zip &&z) noexcept;
51 Zip& operator=(const Zip&) = delete;
52 Zip& operator=(Zip &&z) noexcept;
57 void SetAutoSave(
bool autosave);
60 void AddFile(const StringUTF8 &path, const
void *data,
size_t len,
bool overwrite =
true);
62 void AddFile(const StringUTF8 &path, const Path &original_file,
bool overwrite = true);
64 void AddDirectory(const StringUTF8 &path);
66 bool Exists(const StringUTF8 &path);
69 StringUTF8 ReadTextFile(const StringUTF8 &path);
73 Zip(const Path &fname,
bool create,
bool overwrite,
bool check_consistency);
76 std::unique_ptr<Impl> pimpl;
82 #endif// CRN_USING_LIBZIP
CRN_ALIAS_SMART_PTR(ImageBW)