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