2 % automatically generated by HelpGen $Revision$ from
3 % wx/zipstrm.h at 16/Sep/04 12:19:29
6 \section{\class{wxZipClassFactory
}}\label{wxzipclassfactory
}
8 Class factory for the zip archive format. See the base class
11 \wxheading{Derived from
}
13 \helpref{wxArchiveClassFactory
}{wxarchiveclassfactory
}
15 \wxheading{Include files
}
21 \helpref{Archive formats such as zip
}{wxarc
}\\
22 \helpref{Generic archive programming
}{wxarcgeneric
}\\
23 \helpref{wxZipEntry
}{wxzipentry
}\\
24 \helpref{wxZipInputStream
}{wxzipinputstream
}\\
25 \helpref{wxZipOutputStream
}{wxzipoutputstream
}
29 % automatically generated by HelpGen $Revision$ from
30 % wx/zipstrm.h at 16/Sep/04 12:19:29
33 \section{\class{wxZipEntry
}}\label{wxzipentry
}
35 Holds the meta-data for an entry in a zip.
37 \wxheading{Derived from
}
39 \helpref{wxArchiveEntry
}{wxarchiveentry
}
41 \wxheading{Include files
}
45 \wxheading{Data structures
}
47 Constants for
\helpref{Get/SetMethod
}{wxzipentrymethod
}:
50 // Compression Method, only
0 (store) and
8 (deflate) are supported here
61 wxZIP_METHOD_TOKENIZE,
63 wxZIP_METHOD_DEFLATE64,
64 wxZIP_METHOD_BZIP2 =
12,
65 wxZIP_METHOD_DEFAULT =
0xffff
70 Constants for
\helpref{Get/SetSystemMadeBy
}{wxzipentrysystemmadeby
}:
73 // Originating File-System.
75 // These are Pkware's values. Note that Info-zip disagree on some of them,
85 wxZIP_SYSTEM_ATARI_ST,
86 wxZIP_SYSTEM_OS2_HPFS,
87 wxZIP_SYSTEM_MACINTOSH,
88 wxZIP_SYSTEM_Z_SYSTEM,
90 wxZIP_SYSTEM_WINDOWS_NTFS,
93 wxZIP_SYSTEM_ACORN_RISC,
95 wxZIP_SYSTEM_ALTERNATE_MVS,
103 Constants for
\helpref{Get/SetExternalAttributes
}{wxzipentryexternalattributes
}:
106 // Dos/Win file attributes
110 wxZIP_A_RDONLY =
0x01,
111 wxZIP_A_HIDDEN =
0x02,
112 wxZIP_A_SYSTEM =
0x04,
113 wxZIP_A_SUBDIR =
0x10,
121 Constants for
\helpref{Get/SetFlags
}{wxzipentrygetflags
}:
124 // Values for the flags field in the zip headers
128 wxZIP_ENCRYPTED =
0x0001,
129 wxZIP_DEFLATE_NORMAL =
0x0000, // normal compression
130 wxZIP_DEFLATE_EXTRA =
0x0002, // extra compression
131 wxZIP_DEFLATE_FAST =
0x0004, // fast compression
132 wxZIP_DEFLATE_SUPERFAST =
0x0006, // superfast compression
133 wxZIP_DEFLATE_MASK =
0x0006,
134 wxZIP_SUMS_FOLLOW =
0x0008, // crc and sizes come after the data
135 wxZIP_ENHANCED =
0x0010,
136 wxZIP_PATCH =
0x0020,
137 wxZIP_STRONG_ENC =
0x0040,
138 wxZIP_UNUSED =
0x0F80,
139 wxZIP_RESERVED =
0xF000
146 \helpref{Archive formats such as zip
}{wxarc
}\\
147 \helpref{wxZipInputStream
}{wxzipinputstream
}\\
148 \helpref{wxZipOutputStream
}{wxzipoutputstream
}\\
149 \helpref{wxZipNotifier
}{wxzipnotifier
}
151 \wxheading{Field availability
}
153 When reading a zip from a stream that is seekable,
154 \helpref{GetNextEntry()
}{wxzipinputstreamgetnextentry
} returns
155 a fully populated wxZipEntry object except for
156 \helpref{wxZipEntry::GetLocalExtra()
}{wxzipentrylocalextra
}. GetLocalExtra()
157 becomes available when the entry is opened, either by calling
158 \helpref{wxZipInputStream::OpenEntry
}{wxzipinputstreamopenentry
} or by
159 making an attempt to read the entry's data.
161 For zips on
\helpref{non-seekable
}{wxarcnoseek
} streams, the following
162 fields are always available when GetNextEntry() returns:
164 \helpref{GetDateTime
}{wxarchiveentrydatetime
}\\
165 \helpref{GetInternalFormat
}{wxarchiveentrygetinternalformat
}\\
166 \helpref{GetInternalName
}{wxzipentrygetinternalname
}\\
167 \helpref{GetFlags
}{wxzipentrygetflags
}\\
168 \helpref{GetLocalExtra
}{wxzipentrylocalextra
}\\
169 \helpref{GetMethod
}{wxzipentrymethod
}\\
170 \helpref{GetName
}{wxarchiveentryname
}\\
171 \helpref{GetOffset
}{wxarchiveentrygetoffset
}\\
172 \helpref{IsDir
}{wxarchiveentryisdir
}
174 The following fields are also usually available when GetNextEntry()
175 returns, however, if the zip was also written to a non-seekable stream
176 the zipper is permitted to store them after the entry's data. In that
177 case they become available when the entry's data has been read to Eof(),
178 or
\helpref{CloseEntry()
}{wxarchiveinputstreamcloseentry
} has been called.
179 {\tt (GetFlags() \& wxZIP
\_SUMS\_FOLLOW) !=
0} indicates that one or
180 more of these come after the data:
182 \helpref{GetCompressedSize
}{wxzipentrygetcompressedsize
}\\
183 \helpref{GetCrc
}{wxzipentrygetcrc
}\\
184 \helpref{GetSize
}{wxarchiveentrysize
}
186 The following are stored at the end of the zip, and become available
187 when the end of the zip has been reached, i.e. after GetNextEntry()
188 returns NULL and Eof() is true:
190 \helpref{GetComment
}{wxzipentrycomment
}\\
191 \helpref{GetExternalAttributes
}{wxzipentryexternalattributes
}\\
192 \helpref{GetExtra
}{wxzipentryextra
}\\
193 \helpref{GetMode
}{wxzipentrymode
}\\
194 \helpref{GetSystemMadeBy
}{wxzipentrysystemmadeby
}\\
195 \helpref{IsReadOnly
}{wxarchiveentryisreadonly
}\\
196 \helpref{IsMadeByUnix
}{wxzipentryismadebyunix
}\\
197 \helpref{IsText
}{wxzipentryistext
}
200 \latexignore{\rtfignore{\wxheading{Members
}}}
203 \membersection{wxZipEntry::wxZipEntry
}\label{wxzipentrywxzipentry
}
205 \func{}{wxZipEntry
}{\param{const wxString\&
}{name = wxEmptyString
},
\param{const wxDateTime\&
}{dt = wxDateTime::Now()
},
\param{off
\_t }{size = wxInvalidOffset
}}
209 \func{}{wxZipEntry
}{\param{const wxZipEntry\&
}{entry
}}
214 \membersection{wxZipEntry::Clone
}\label{wxzipentryclone
}
216 \constfunc{wxZipEntry*
}{Clone
}{\void}
218 Make a copy of this entry.
221 \membersection{wxZipEntry::Get/SetComment
}\label{wxzipentrycomment
}
223 \constfunc{wxString
}{GetComment
}{\void}
225 \func{void
}{SetComment
}{\param{const wxString\&
}{comment
}}
227 A short comment for this entry.
230 \membersection{wxZipEntry::GetCompressedSize
}\label{wxzipentrygetcompressedsize
}
232 \constfunc{off
\_t}{GetCompressedSize
}{\void}
234 The compressed size of this entry in bytes.
237 \membersection{wxZipEntry::GetCrc
}\label{wxzipentrygetcrc
}
239 \constfunc{wxUint32
}{GetCrc
}{\void}
241 CRC32 for this entry's data.
244 \membersection{wxZipEntry::Get/SetExternalAttributes
}\label{wxzipentryexternalattributes
}
246 \constfunc{wxUint32
}{GetExternalAttributes
}{\void}
248 \func{void
}{SetExternalAttributes
}{\param{wxUint32
}{attr
}}
250 The low
8 bits are always the DOS/Windows file attributes for this entry.
251 The values of these attributes are given in the
252 enumeration
{\tt wxZipAttributes
}.
254 The remaining bits can store platform specific permission bits or
255 attributes, and their meaning depends on the value
256 of
\helpref{SetSystemMadeBy()
}{wxzipentrysystemmadeby
}.
257 If
\helpref{IsMadeByUnix()
}{wxzipentryismadebyunix
} is true then the
258 high
16 bits are unix mode bits.
260 The following other accessors access these bits:
262 \helpref{IsReadOnly/SetIsReadOnly
}{wxarchiveentryisreadonly
}\\
263 \helpref{IsDir/SetIsDir
}{wxarchiveentryisdir
}\\
264 \helpref{Get/SetMode
}{wxzipentrymode
}
267 \membersection{wxZipEntry::Get/SetExtra
}\label{wxzipentryextra
}
269 \constfunc{const char*
}{GetExtra
}{\void}
271 \constfunc{size
\_t}{GetExtraLen
}{\void}
273 \func{void
}{SetExtra
}{\param{const char*
}{extra
},
\param{size
\_t }{len
}}
275 The extra field from the entry's central directory record.
277 The extra field is used to store platform or application specific
278 data. See Pkware's
document 'appnote.txt' for information on its format.
281 \membersection{wxZipEntry::GetFlags
}\label{wxzipentrygetflags
}
283 \constfunc{int
}{GetFlags
}{\void}
285 Returns a combination of the bits flags in the enumeration
{\tt wxZipFlags
}.
288 \membersection{wxZipEntry::GetInternalName
}\label{wxzipentrygetinternalname
}
290 \constfunc{wxString
}{GetInternalName
}{\void}
292 Returns the entry's filename in the internal format used within the
293 archive. The name can include directory components, i.e. it can be a
296 The names of directory entries are returned without any trailing path
297 separator. This gives a canonical name that can be used in comparisons.
299 \func{wxString
}{GetInternalName
}{\param{const wxString\&
}{name
},
\param{wxPathFormat
}{format = wxPATH
\_NATIVE},
\param{bool*
}{pIsDir = NULL
}}
301 A static member that translates a filename into the internal format used
302 within the archive. If the third parameter is provided, the bool pointed
303 to is set to indicate whether the name looks like a directory name
304 (i.e. has a trailing path separator).
308 \helpref{Looking up an archive entry by name
}{wxarcbyname
}
311 \membersection{wxZipEntry::Get/SetLocalExtra
}\label{wxzipentrylocalextra
}
313 \constfunc{const char*
}{GetLocalExtra
}{\void}
315 \constfunc{size
\_t}{GetLocalExtraLen
}{\void}
317 \func{void
}{SetLocalExtra
}{\param{const char*
}{extra
},
\param{size
\_t }{len
}}
319 The extra field from the entry's local record.
321 The extra field is used to store platform or application specific
322 data. See Pkware's
document 'appnote.txt' for information on its format.
325 \membersection{wxZipEntry::Get/SetMethod
}\label{wxzipentrymethod
}
327 \constfunc{int
}{GetMethod
}{\void}
329 \func{void
}{SetMethod
}{\param{int
}{method
}}
331 The compression method. The enumeration
{\tt wxZipMethod
} lists the
334 The default constructor sets this to wxZIP
\_METHOD\_DEFAULT,
335 which allows
\helpref{wxZipOutputStream
}{wxzipoutputstream
} to
336 choose the method when writing the entry.
339 \membersection{wxZipEntry::Get/SetMode
}\label{wxzipentrymode
}
341 \constfunc{int
}{GetMode
}{\void}
343 If
\helpref{IsMadeByUnix()
}{wxzipentryismadebyunix
} is true then
344 returns the unix permission bits stored in
345 \helpref{GetExternalAttributes()
}{wxzipentryexternalattributes
}.
346 Otherwise synthesises them from the DOS attributes.
348 \func{void
}{SetMode
}{\param{int
}{mode
}}
350 Sets the DOS attributes
351 in
\helpref{GetExternalAttributes()
}{wxzipentryexternalattributes
}
352 to be consistent with the
{\tt mode
} given.
354 If
\helpref{IsMadeByUnix()
}{wxzipentryismadebyunix
} is true then also
355 stores
{\tt mode
} in GetExternalAttributes().
357 Note that the default constructor
358 sets
\helpref{GetSystemMadeBy()
}{wxzipentrysystemmadeby
} to
359 wxZIP
\_SYSTEM\_MSDOS by default. So to be able to store unix
360 permissions when creating zips, call SetSystemMadeBy(wxZIP
\_SYSTEM\_UNIX).
363 \membersection{wxZipEntry::SetNotifier
}\label{wxzipentrynotifier
}
365 \func{void
}{SetNotifier
}{\param{wxZipNotifier\&
}{notifier
}}
367 \func{void
}{UnsetNotifier
}{\void}
369 Sets the
\helpref{notifier
}{wxzipnotifier
} for this entry.
370 Whenever the
\helpref{wxZipInputStream
}{wxzipinputstream
} updates
371 this entry, it will then invoke the associated
372 notifier's
\helpref{OnEntryUpdated
}{wxzipnotifieronentryupdated
}
375 Setting a notifier is not usually necessary. It is used to handle
376 certain cases when modifying an zip in a pipeline (i.e. between
377 non-seekable streams).
381 \helpref{Archives on non-seekable streams
}{wxarcnoseek
}\\
382 \helpref{wxZipNotifier
}{wxzipnotifier
}
385 \membersection{wxZipEntry::Get/SetSystemMadeBy
}\label{wxzipentrysystemmadeby
}
387 \constfunc{int
}{GetSystemMadeBy
}{\void}
389 \func{void
}{SetSystemMadeBy
}{\param{int
}{system
}}
391 The originating file-system. The default constructor sets this to
392 wxZIP
\_SYSTEM\_MSDOS. Set it to wxZIP
\_SYSTEM\_UNIX in order to be
393 able to store unix permissions using
\helpref{SetMode()
}{wxzipentrymode
}.
396 \membersection{wxZipEntry::IsMadeByUnix
}\label{wxzipentryismadebyunix
}
398 \constfunc{bool
}{IsMadeByUnix
}{\void}
400 Returns true if
\helpref{GetSystemMadeBy()
}{wxzipentrysystemmadeby
}
401 is a flavour of unix.
404 \membersection{wxZipEntry::IsText/SetIsText
}\label{wxzipentryistext
}
406 \constfunc{bool
}{IsText
}{\void}
408 \func{void
}{SetIsText
}{\param{bool
}{isText = true
}}
410 Indicates that this entry's data is text in an
8-bit encoding.
413 \membersection{wxZipEntry::operator=
}\label{wxzipentryoperatorassign
}
415 \func{wxZipEntry\& operator
}{operator=
}{\param{const wxZipEntry\&
}{entry
}}
421 % automatically generated by HelpGen $Revision$ from
422 % wx/zipstrm.h at 16/Sep/04 12:19:29
425 \section{\class{wxZipInputStream
}}\label{wxzipinputstream
}
427 Input stream for reading zip files.
429 \helpref{GetNextEntry()
}{wxzipinputstreamgetnextentry
} returns an
430 \helpref{wxZipEntry
}{wxzipentry
} object containing the meta-data
431 for the next entry in the zip (and gives away ownership). Reading from
432 the wxZipInputStream then returns the entry's data. Eof() becomes true
433 after an attempt has been made to read past the end of the entry's data.
434 When there are no more entries, GetNextEntry() returns NULL and sets Eof().
436 Note that in general zip entries are not seekable, and
437 wxZipInputStream::SeekI() always returns wxInvalidOffset.
439 \wxheading{Derived from
}
441 \helpref{wxArchiveInputStream
}{wxarchiveinputstream
}
443 \wxheading{Include files
}
447 \wxheading{Data structures
}
449 typedef wxZipEntry entry_type
454 \helpref{Archive formats such as zip
}{wxarc
}\\
455 \helpref{wxZipEntry
}{wxzipentry
}\\
456 \helpref{wxZipOutputStream
}{wxzipoutputstream
}
458 \latexignore{\rtfignore{\wxheading{Members
}}}
461 \membersection{wxZipInputStream::wxZipInputStream
}\label{wxzipinputstreamwxzipinputstream
}
463 \func{}{wxZipInputStream
}{\param{wxInputStream\&
}{stream
},
\param{wxMBConv\&
}{conv = wxConvLocal
}}
465 \func{}{wxZipInputStream
}{\param{wxInputStream*
}{stream
},
\param{wxMBConv\&
}{conv = wxConvLocal
}}
467 Constructor. In a Unicode build the second parameter
{\tt conv
} is
468 used to translate the filename and comment fields into Unicode. It has
469 no effect on the stream's data.
471 If the parent stream is passed as a pointer then the new filter stream
472 takes ownership of it. If it is passed by reference then it does not.
474 \func{}{wxZipInputStream
}{\param{const wxString\&
}{archive
},
\param{const wxString\&
}{file
}}
476 Compatibility constructor (requires WXWIN
\_COMPATIBILITY\_2\_6).
478 When this constructor is used, an emulation of seeking is
479 switched on for compatibility with previous versions. Note however,
480 that it is deprecated.
483 \membersection{wxZipInputStream::CloseEntry
}\label{wxzipinputstreamcloseentry
}
485 \func{bool
}{CloseEntry
}{\void}
487 Closes the current entry. On a non-seekable stream reads to the end of
488 the current entry first.
491 \membersection{wxZipInputStream::GetComment
}\label{wxzipinputstreamgetcomment
}
493 \func{wxString
}{GetComment
}{\void}
495 Returns the zip comment.
497 This is stored at the end of the zip, therefore when reading a zip
498 from a non-seekable stream, it returns the empty string until the
499 end of the zip has been reached, i.e. when GetNextEntry() returns
503 \membersection{wxZipInputStream::GetNextEntry
}\label{wxzipinputstreamgetnextentry
}
505 \func{wxZipEntry*
}{GetNextEntry
}{\void}
507 Closes the current entry if one is open, then reads the meta-data for
508 the next entry and returns it in a
\helpref{wxZipEntry
}{wxzipentry
}
509 object, giving away ownership. The stream is then open and can be read.
512 \membersection{wxZipInputStream::GetTotalEntries
}\label{wxzipinputstreamgettotalentries
}
514 \func{int
}{GetTotalEntries
}{\void}
516 For a zip on a seekable stream returns the total number of entries in
517 the zip. For zips on non-seekable streams returns the number of entries
518 returned so far by
\helpref{GetNextEntry()
}{wxzipinputstreamgetnextentry
}.
521 \membersection{wxZipInputStream::OpenEntry
}\label{wxzipinputstreamopenentry
}
523 \func{bool
}{OpenEntry
}{\param{wxZipEntry\&
}{entry
}}
525 Closes the current entry if one is open, then opens the entry specified
526 by the
{\it entry
} object.
528 {\it entry
} should be from the same zip file, and the zip should
529 be on a seekable stream.
533 \helpref{Looking up an archive entry by name
}{wxarcbyname
}
537 % automatically generated by HelpGen $Revision$ from
538 % wx/zipstrm.h at 16/Sep/04 12:19:29
541 \section{\class{wxZipNotifier
}}\label{wxzipnotifier
}
543 If you need to know when a
\helpref{wxZipInputStream
}{wxzipinputstream
}
544 updates a
\helpref{wxZipEntry
}{wxzipentry
},
545 you can create a notifier by deriving from this abstract base class,
546 overriding
\helpref{OnEntryUpdated()
}{wxzipnotifieronentryupdated
}.
547 An instance of your notifier class can then be assigned to wxZipEntry
548 objects, using
\helpref{wxZipEntry::SetNotifier()
}{wxzipentrynotifier
}.
550 Setting a notifier is not usually necessary. It is used to handle
551 certain cases when modifying an zip in a pipeline (i.e. between
552 non-seekable streams).
553 See '
\helpref{Archives on non-seekable streams
}{wxarcnoseek
}'.
555 \wxheading{Derived from
}
559 \wxheading{Include files
}
565 \helpref{Archives on non-seekable streams
}{wxarcnoseek
}\\
566 \helpref{wxZipEntry
}{wxzipentry
}\\
567 \helpref{wxZipInputStream
}{wxzipinputstream
}\\
568 \helpref{wxZipOutputStream
}{wxzipoutputstream
}
570 \latexignore{\rtfignore{\wxheading{Members
}}}
573 \membersection{wxZipNotifier::OnEntryUpdated
}\label{wxzipnotifieronentryupdated
}
575 \func{void
}{OnEntryUpdated
}{\param{wxZipEntry\&
}{entry
}}
577 Override this to receive notifications when
578 an
\helpref{wxZipEntry
}{wxzipentry
} object changes.
582 % automatically generated by HelpGen $Revision$ from
583 % wx/zipstrm.h at 16/Sep/04 12:19:29
586 \section{\class{wxZipOutputStream
}}\label{wxzipoutputstream
}
588 Output stream for writing zip files.
590 \helpref{PutNextEntry()
}{wxzipoutputstreamputnextentry
} is used to create
591 a new entry in the output zip, then the entry's data is written to the
592 wxZipOutputStream. Another call to PutNextEntry() closes the current
593 entry and begins the next.
595 \wxheading{Derived from
}
597 \helpref{wxArchiveOutputStream
}{wxarchiveoutputstream
}
599 \wxheading{Include files
}
605 \helpref{Archive formats such as zip
}{wxarc
}\\
606 \helpref{wxZipEntry
}{wxzipentry
}\\
607 \helpref{wxZipInputStream
}{wxzipinputstream
}
609 \latexignore{\rtfignore{\wxheading{Members
}}}
612 \membersection{wxZipOutputStream::wxZipOutputStream
}\label{wxzipoutputstreamwxzipoutputstream
}
614 \func{}{wxZipOutputStream
}{\param{wxOutputStream\&
}{stream
},
\param{int
}{level = -
1},
\param{wxMBConv\&
}{conv = wxConvLocal
}}
616 \func{}{wxZipOutputStream
}{\param{wxOutputStream*
}{stream
},
\param{int
}{level = -
1},
\param{wxMBConv\&
}{conv = wxConvLocal
}}
618 Constructor.
{\tt level
} is the compression level to use.
619 It can be a value between
0 and
9 or -
1 to use the default value
620 which currently is equivalent to
6.
622 If the parent stream is passed as a pointer then the new filter stream
623 takes ownership of it. If it is passed by reference then it does not.
625 In a Unicode build the third parameter
{\tt conv
} is used to translate
626 the filename and comment fields to Unicode. It has no effect on the
630 \membersection{wxZipOutputStream::
\destruct{wxZipOutputStream
}}\label{wxzipoutputstreamdtor
}
632 \func{}{\destruct{wxZipOutputStream
}}{\void}
634 The destructor calls
\helpref{Close()
}{wxzipoutputstreamclose
} to finish
635 writing the zip if it has not been called already.
638 \membersection{wxZipOutputStream::Close
}\label{wxzipoutputstreamclose
}
640 \func{bool
}{Close
}{\void}
642 Finishes writing the zip, returning true if successfully.
643 Called by the destructor if not called explicitly.
646 \membersection{wxZipOutputStream::CloseEntry
}\label{wxzipoutputstreamcloseentry
}
648 \func{bool
}{CloseEntry
}{\void}
650 Close the current entry. It is called implicitly whenever another new
651 entry is created with
\helpref{CopyEntry()
}{wxzipoutputstreamcopyentry
}
652 or
\helpref{PutNextEntry()
}{wxzipoutputstreamputnextentry
}, or
653 when the zip is closed.
656 \membersection{wxZipOutputStream::CopyArchiveMetaData
}\label{wxzipoutputstreamcopyarchivemetadata
}
658 \func{bool
}{CopyArchiveMetaData
}{\param{wxZipInputStream\&
}{inputStream
}}
660 Transfers the zip comment from the
\helpref{wxZipInputStream
}{wxzipinputstream
}
661 to this output stream.
664 \membersection{wxZipOutputStream::CopyEntry
}\label{wxzipoutputstreamcopyentry
}
666 \func{bool
}{CopyEntry
}{\param{wxZipEntry*
}{entry
},
\param{wxZipInputStream\&
}{inputStream
}}
668 Takes ownership of
{\tt entry
} and uses it to create a new entry
669 in the zip.
{\tt entry
} is then opened in
{\tt inputStream
} and its contents
670 copied to this stream.
672 CopyEntry() is much more efficient than transferring the data using
673 Read() and Write() since it will copy them without decompressing and
676 For zips on seekable streams,
{\tt entry
} must be from the same zip file
677 as
{\tt stream
}. For non-seekable streams,
{\tt entry
} must also be the
678 last thing read from
{\tt inputStream
}.
681 \membersection{wxZipOutputStream::Get/SetLevel
}\label{wxzipoutputstreamlevel
}
683 \constfunc{int
}{GetLevel
}{\void}
685 \func{void
}{SetLevel
}{\param{int
}{level
}}
687 Set the compression level that will be used the next time an entry is
688 created. It can be a value between
0 and
9 or -
1 to use the default value
689 which currently is equivalent to
6.
692 \membersection{wxZipOutputStream::PutNextDirEntry
}\label{wxzipoutputstreamputnextdirentry
}
694 \func{bool
}{PutNextDirEntry
}{\param{const wxString\&
}{name
},
\param{const wxDateTime\&
}{dt = wxDateTime::Now()
}}
696 Create a new directory entry
697 (see
\helpref{wxArchiveEntry::IsDir()
}{wxarchiveentryisdir
})
698 with the given name and timestamp.
700 \helpref{PutNextEntry()
}{wxzipoutputstreamputnextentry
} can
701 also be used to create directory entries, by supplying a name with
702 a trailing path separator.
705 \membersection{wxZipOutputStream::PutNextEntry
}\label{wxzipoutputstreamputnextentry
}
707 \func{bool
}{PutNextEntry
}{\param{wxZipEntry*
}{entry
}}
709 Takes ownership of
{\tt entry
} and uses it to create a new entry
712 \func{bool
}{PutNextEntry
}{\param{const wxString\&
}{name
},
\param{const wxDateTime\&
}{dt = wxDateTime::Now()
},
\param{off
\_t }{size = wxInvalidOffset
}}
714 Create a new entry with the given name, timestamp and size.
717 \membersection{wxZipOutputStream::SetComment
}\label{wxzipoutputstreamsetcomment
}
719 \func{void
}{SetComment
}{\param{const wxString\&
}{comment
}}
721 Sets a comment for the zip as a whole. It is written at the end of the