zipios++  2.0.2
Zipios++ – a small C++ library that provides easy access to .zip files.
Functions
zipios::anonymous_namespace{zipoutputstreambuf.cpp} Namespace Reference

Functions

void writeZipCentralDirectory (std::ostream &os, FileEntry::vector_t &entries, std::string const &comment)
 Help function used to write the central directory. More...
 

Function Documentation

void zipios::anonymous_namespace{zipoutputstreambuf.cpp}::writeZipCentralDirectory ( std::ostream &  os,
FileEntry::vector_t &  entries,
std::string const &  comment 
)

When you create a Zip archive, it includes a central directory where all the meta data about each file is saved. This function saves an array of entries in an output stream to generate the Zip file central directory.

Parameters
[in]osThe output stream.
[in]entriesThe array of entries to save in this central directory.
[in]commentThe zip archive global comment.

Definition at line 56 of file zipoutputstreambuf.cpp.

References zipios::ZipEndOfCentralDirectory::setCentralDirectorySize(), zipios::ZipEndOfCentralDirectory::setCount(), zipios::ZipEndOfCentralDirectory::setOffset(), and zipios::ZipEndOfCentralDirectory::write().

Referenced by zipios::ZipOutputStreambuf::finish().