13 bool Load(
const std::string& sPath);
21 void FlushDirCache(
const std::string& sPath)
override;
23 void DeleteFileWhenFinished() { m_bFileOwned =
true; }
26 enum ZipCompressionMethod
37 ZipCompressionMethod m_iCompressionMethod;
39 int m_iCompressedSize, m_iUncompressedSize;
42 int m_iFilePermissions;
44 const FileInfo* GetFileInfo(
const std::string& sPath)
const;
46 std::string GetGlobalComment()
const {
return m_sComment; }
52 std::vector<FileInfo*> m_pFiles;
55 std::string m_sComment;
62 bool ReadEndCentralRecord(
int& total_entries_central_dir,
63 int& offset_start_central_directory);
64 int ProcessCdirFileHdr(FileInfo& info);
65 bool SeekToEndCentralRecord();
66 bool ReadLocalFileHeader(FileInfo& info);