Library: Zip
Package: Zip
Header: Poco/Zip/ZipArchiveInfo.h
A ZipArchiveInfo stores central directory info
Member Functions: createHeader, getCentralDirectorySize, getDiskNumber, getFirstDiskForDirectoryHeader, getHeaderOffset, getNumberOfEntries, getTotalNumberOfEntries, getZipComment, setCentralDirectorySize, setHeaderOffset, setNumberOfEntries, setTotalNumberOfEntries, setZipComment
Default constructor, everything set to zero or empty
ZipArchiveInfo(
    std::istream & in,
    bool assumeHeaderRead
);
Creates the ZipArchiveInfo by parsing the input stream. If assumeHeaderRead is true we assume that the first 4 bytes were already read outside.
~ZipArchiveInfo();
Destroys the ZipArchiveInfo.
std::string createHeader() const;
Creates a header
 
 Poco::UInt32 getCentralDirectorySize() const;
Returns the size of the central directory in bytes
 
 Poco::UInt16 getDiskNumber() const;
Get the number of the disk where this header can be found
 
 Poco::UInt16 getFirstDiskForDirectoryHeader() const;
Returns the number of the disk that contains the start of the directory header
 
 std::streamoff getHeaderOffset() const;
Returns the offset of the header in relation to the begin of this disk
 
 Poco::UInt16 getNumberOfEntries() const;
Returns the number of entries on this disk
 
 Poco::UInt16 getTotalNumberOfEntries() const;
Returns the total number of entries on all disks
 
 const std::string & getZipComment() const;
Returns the (optional) Zip Comment
 
 void setCentralDirectorySize(
    Poco::UInt32 val
);
Returns the size of the central directory in bytes
 
 void setHeaderOffset(
    Poco::UInt32 val
);
 
 void setNumberOfEntries(
    Poco::UInt16 val
);
Returns the number of entries on this disk
 
 void setTotalNumberOfEntries(
    Poco::UInt16 val
);
Returns the total number of entries on all disks
void setZipComment(
    const std::string & comment
);
Sets the optional Zip comment.
 
 static const char HEADER[ZipCommon::HEADER_SIZE];