Classes | Namespaces | Functions
Zip.hpp File Reference

(1)

Zipper and Unzipper classes. More...

#include <Balau/Exception/ResourceExceptions.hpp>
#include <Balau/Resource/File.hpp>
#include <Balau/Util/DateTime.hpp>
#include <Balau/Util/Files.hpp>
#include <boost/iostreams/categories.hpp>
#include <boost/iostreams/concepts.hpp>
#include <boost/iostreams/copy.hpp>
#include <boost/iostreams/device/file_descriptor.hpp>
#include <boost/iostreams/filter/gzip.hpp>
#include <boost/iostreams/filtering_stream.hpp>
#include <boost/iostreams/filtering_streambuf.hpp>
#include <algorithm>
#include <chrono>
#include <iosfwd>
#include <sstream>
Include dependency graph for Zip.hpp:

Go to the source code of this file.

Classes

class  Unzipper
 Random access to the entries in a zip archive. More...
 
struct  ZipEntryInfo
 Information about a zip archive entry (file or directory). More...
 
class  Zipper
 Transactional modification of entries in a new or existing zip archive. More...
 

Namespaces

 Balau
 The root Balau namespace.
 
 Balau::Util
 Utility functions.
 

Functions

template<typename AllocatorT >
U8String< AllocatorT > toString (const ZipEntryInfo &info)
 Print the zip entry info as a UTF-8 string. More...
 

Detailed Description

Zipper and Unzipper classes.


Class Documentation

◆ Balau::Util::ZipEntryInfo

struct Balau::Util::ZipEntryInfo

Information about a zip archive entry (file or directory).

This structure is equivalent to LibZip's zip_stat structure.

Class Members
long long compressedSize The compressed size of the entry.
unsigned short compressionMethod The compression method used.
unsigned int crc The CRC of the entry's data.
unsigned short encryptionMethod The encryption method used.
long long index The entry index within the archive.
time_point modificationTime The last modification time.
string name The name of the entry.
long long uncompressedSize The uncompressed size of the entry.