comparison Core/Compression/ZipWriter.h @ 1277:46bca019587e

primitives to add new content to existing ZIP files
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 26 Jan 2015 15:22:14 +0100
parents 2d0a347e8cfc
children 6e7e5ed91c2d
comparison
equal deleted inserted replaced
1276:6164f7200c43 1277:46bca019587e
48 struct PImpl; 48 struct PImpl;
49 boost::shared_ptr<PImpl> pimpl_; 49 boost::shared_ptr<PImpl> pimpl_;
50 50
51 bool isZip64_; 51 bool isZip64_;
52 bool hasFileInZip_; 52 bool hasFileInZip_;
53 bool append_;
53 uint8_t compressionLevel_; 54 uint8_t compressionLevel_;
54 std::string path_; 55 std::string path_;
55 56
56 public: 57 public:
57 ZipWriter(); 58 ZipWriter();
68 void SetCompressionLevel(uint8_t level); 69 void SetCompressionLevel(uint8_t level);
69 70
70 uint8_t GetCompressionLevel() const 71 uint8_t GetCompressionLevel() const
71 { 72 {
72 return compressionLevel_; 73 return compressionLevel_;
74 }
75
76 void SetAppendToExisting(bool append);
77
78 bool IsAppendToExisting() const
79 {
80 return append_;
73 } 81 }
74 82
75 void Open(); 83 void Open();
76 84
77 void Close(); 85 void Close();