• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/amule/wxWidgets-2.8.12/docs/latex/wx/

Lines Matching defs:entry

23 entry (e.g. filename, timestamp, etc.)}
46 create each new entry in the archive, then write the entry's data.
47 Another call to PutNextEntry() closes the current entry and begins the next.
65 The name of each entry can be a full path, which makes it possible to
74 to entry object containing the meta-data for the next entry in the archive
76 entry's data. Eof() becomes true after an attempt has been made to read past
77 the end of the entry's data.
82 auto_ptr<wxZipEntry> entry;
87 while (entry.reset(zip.GetNextEntry()), entry.get() != NULL)
90 wxString name = entry->GetName();
91 // read 'zip' to access the entry's data
104 For archive types which compress entry data, CopyEntry() is likely to be
124 auto_ptr<wxZipEntry> entry;
130 // call CopyEntry for each entry except those matching the pattern
131 while (entry.reset(inzip.GetNextEntry()), entry.get() != NULL)
132 if (!entry->GetName().Matches(_T("*.txt")))
133 if (!outzip.CopyEntry(entry.release(), inzip))
146 \subsection{Looking up an archive entry by name}\label{wxarcbyname}
153 To open just one entry in an archive, the most efficient way is
156 required entry is found. This works both for archives on seekable and
164 the entry back \helpref{GetName()}{wxarchiveentryname} will return
168 So to avoid ambiguity when searching for an entry matching a local name,
173 auto_ptr<wxZipEntry> entry;
184 entry.reset(zip.GetNextEntry());
186 while (entry.get() != NULL && entry->GetInternalName() != name);
188 if (entry.get() != NULL) {
189 // read the entry's data...
202 wxZipEntry *entry;
210 while ((entry = zip.GetNextEntry()) != NULL) {
211 wxZipEntry*& current = cat[entry->GetInternalName()];
215 current = entry;
218 // open an entry by name
221 // ... now read entry's data
226 To open more than one entry simultaneously you need more than one
230 // opening another entry without closing the first requires another
255 entry (e.g. filename)}
272 // create an empty entry object
273 auto_ptr<wxArchiveEntry> entry(factory->NewEntry());
320 auto_ptr<wxArchiveEntry> entry;
323 while ((entry.reset(arc->GetNextEntry())), entry.get() != NULL)
324 std::wcout << entry->GetName().c_str() << "\n";
350 \wxheading{PutNextEntry and the entry size}
352 When writing archives, some archive formats store the entry size before
353 the entry's data (tar has this limitation, zip doesn't). In this case
354 the entry's size must be passed to
360 entry is known.
368 Some archive formats do not store all an entry's meta-data before the
369 entry's data (zip is an example). In this case, when reading from a
374 The input stream then keeps a weak reference to the entry object and
379 The documentation for each archive entry type gives the details
387 available after the entry has been read to \helpref{Eof()}{wxinputstreameof},
405 Consider the following code which renames an entry in an archive.
406 This is the usual way to modify an entry's meta-data, simply set the
413 auto_ptr<wxArchiveEntry> entry;
417 while (entry.reset(arc->GetNextEntry()), entry.get() != NULL) {
418 if (entry->GetName() == from)
419 entry->SetName(to);
420 if (!outarc->CopyEntry(entry.release(), *arc))
438 void OnEntryUpdated(wxArchiveEntry& entry) { entry.SetIsReadOnly(false); }
451 auto_ptr<wxArchiveEntry> entry;
456 while (entry.reset(arc->GetNextEntry()), entry.get() != NULL) {
457 entry->SetNotifier(notifier);
458 if (!outarc->CopyEntry(entry.release(), *arc))
467 stream calls it again whenever it sets more fields in the entry. Since
470 changing the entry name can be done this way too and it works on seekable