2#ifndef ZIPLOCALENTRY_HPP
3#define ZIPLOCALENTRY_HPP
62 virtual void read(std::istream & is)
override;
63 virtual void write(std::ostream & os)
override;
A FileEntry represents an entry in a FileCollection.
std::shared_ptr< FileEntry > pointer_t
An implementation of the FileEntry for Zip archives.
uint16_t m_extract_version
virtual pointer_t clone() const override
Create a clone of a ZipLocalEntry object.
virtual void setCrc(crc32_t crc) override
Save the CRC of the entry.
virtual void setCompressedSize(size_t size) override
Set the size when the file is compressed.
virtual ~ZipLocalEntry() override
Clean up a ZipLocalEntry object.
virtual void read(std::istream &is) override
Read one local entry from is.
virtual bool isDirectory() const override
Check whether the filename represents a directory.
uint16_t m_general_purpose_bitfield
virtual void write(std::ostream &os) override
Write a ZipLocalEntry to os.
ZipLocalEntry()
Create a default ZipLocalEntry objects.
virtual bool isEqual(FileEntry const &file_entry) const override
Compare two file entries for equality.
virtual size_t getHeaderSize() const override
Retrieve the size of the header.
bool hasTrailingDataDescriptor() const
Is there a trailing data descriptor?
virtual size_t getCompressedSize() const override
Retrieve the size of the file when compressed.
static uint16_t const g_zip_format_version
Define the zipios::FileEntry class.
The zipios namespace includes the Zipios library definitions.