Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

zipios_zipcdirentry(3) [debian man page]

zipios::ZipCDirEntry(3) 				     Library Functions Manual					   zipios::ZipCDirEntry(3)

NAME
zipios::ZipCDirEntry - Specialization of ZipLocalEntry, that add fields for storing the extra information, that is only present in the entries in the zip central directory and not in the local entry headers. SYNOPSIS
#include <ziphead.h> Inherits zipios::ZipLocalEntry. Public Member Functions ZipCDirEntry (const string &_filename='', const string &_file_comment='', const vector< unsigned char > &_extra_field=vector< unsigned char >()) void setDefaultWriter () ZipCDirEntry & operator= (const class ZipCDirEntry &src) virtual string toString () const Returns a human-readable string representation of the entry. virtual string getComment () const Returns the comment of the entry, if it has one. virtual void setComment (const string &comment) Sets the comment field for the FileEntry. virtual uint32 getLocalHeaderOffset () const virtual void setLocalHeaderOffset (uint32 offset) int getCDirHeaderSize () const virtual FileEntry * clone () const Create a heap allocated clone of the object this method is called for. Friends istream & operator>> (istream &is, ZipCDirEntry &zcdh) ostream & operator<< (ostream &os, const ZipCDirEntry &zcdh) bool operator== (const ZipLocalEntry &zlh, const ZipCDirEntry &ze) Detailed Description Specialization of ZipLocalEntry, that add fields for storing the extra information, that is only present in the entries in the zip central directory and not in the local entry headers. Definition at line 102 of file ziphead.h. Member Function Documentation FileEntry * zipios::ZipCDirEntry::clone () const [virtual] Create a heap allocated clone of the object this method is called for. The caller is responsible for deallocating the clone when he is done with it. Returns: A heap allocated copy of the object this method is called for. Reimplemented from zipios::ZipLocalEntry. Definition at line 231 of file ziphead.cpp. string zipios::ZipCDirEntry::getComment () const [virtual] Returns the comment of the entry, if it has one. Otherwise it returns an empty string. Returns: the comment associated with the entry, if there is one. Reimplemented from zipios::ZipLocalEntry. Definition at line 199 of file ziphead.cpp. void zipios::ZipCDirEntry::setComment (const string &comment) [virtual] Sets the comment field for the FileEntry. Parameters: comment string with the new comment. Reimplemented from zipios::ZipLocalEntry. Definition at line 212 of file ziphead.cpp. string zipios::ZipCDirEntry::toString () const [virtual] Returns a human-readable string representation of the entry. Returns: a human-readable string representation of the entry. Reimplemented from zipios::ZipLocalEntry. Definition at line 218 of file ziphead.cpp. Author Generated automatically by Doxygen for Zipios++ from the source code. Zipios++ Mon Oct 10 2011 zipios::ZipCDirEntry(3)

Check Out this Related Man Page

zipios::ZipOutputStream(3)				     Library Functions Manual					zipios::ZipOutputStream(3)

NAME
zipios::ZipOutputStream - SYNOPSIS
#include <zipoutputstream.h> Public Member Functions ZipOutputStream (std::ostream &os) ZipOutputStream constructor. ZipOutputStream (const std::string &filename) ZipOutputStream constructor. void closeEntry () Closes the current entry updates its header with the relevant size information and positions the stream write pointer for the next entry header. void close () Calls finish and if the ZipOutputStream was created with a filename as a parameter that file is closed as well. void finish () Closes the current entry (if one is open), then writes the Zip Central Directory Structure closing the ZipOutputStream. void putNextEntry (const ZipCDirEntry &entry) void putNextEntry (const std::string &entryName) void setComment (const std::string &comment) Sets the global comment for the Zip archive. void setLevel (int level) Sets the compression level to be used for subsequent entries. void setMethod (StorageMethod method) Sets the compression method to be used. virtual ~ZipOutputStream () Destructor. Detailed Description ZipOutputStream is an ostream that writes the output to a zip file. The interface approximates the interface of the Java ZipOutputStream. Definition at line 18 of file zipoutputstream.h. Constructor &; Destructor Documentation zipios::ZipOutputStream::ZipOutputStream (std::ostream &os) [explicit] ZipOutputStream constructor. Parameters: os ostream to which the compressed zip archive is written. pos position to reposition the ostream to before reading. Definition at line 13 of file zipoutputstream.cpp. zipios::ZipOutputStream::ZipOutputStream (const std::string &filename) [explicit] ZipOutputStream constructor. filename to write the zip archive to. Definition at line 24 of file zipoutputstream.cpp. zipios::ZipOutputStream::~ZipOutputStream () [virtual] Destructor. Definition at line 74 of file zipoutputstream.cpp. Member Function Documentation void zipios::ZipOutputStream::close () Calls finish and if the ZipOutputStream was created with a filename as a parameter that file is closed as well. If the ZipOutputStream was created with an ostream as its first parameter nothing but the call to finish happens. Definition at line 38 of file zipoutputstream.cpp. void zipios::ZipOutputStream::closeEntry () Closes the current entry updates its header with the relevant size information and positions the stream write pointer for the next entry header. Puts the stream in EOF state. Call putNextEntry() to clear the EOF stream state flag. Definition at line 33 of file zipoutputstream.cpp. void zipios::ZipOutputStream::finish () Closes the current entry (if one is open), then writes the Zip Central Directory Structure closing the ZipOutputStream. The output stream that the zip archive is being written to is not closed. Definition at line 45 of file zipoutputstream.cpp. void zipios::ZipOutputStream::putNextEntry (const ZipCDirEntry &entry) Begins writing the next entry. Definition at line 50 of file zipoutputstream.cpp. void zipios::ZipOutputStream::putNextEntry (const std::string &entryName) Begins writing the next entry. Definition at line 54 of file zipoutputstream.cpp. void zipios::ZipOutputStream::setComment (const std::string &comment) Sets the global comment for the Zip archive. Definition at line 59 of file zipoutputstream.cpp. void zipios::ZipOutputStream::setLevel (intlevel) Sets the compression level to be used for subsequent entries. Definition at line 64 of file zipoutputstream.cpp. void zipios::ZipOutputStream::setMethod (StorageMethodmethod) Sets the compression method to be used. only STORED and DEFLATED are supported. Definition at line 69 of file zipoutputstream.cpp. Author Generated automatically by Doxygen for Zipios++ from the source code. Zipios++ Mon Oct 10 2011 zipios::ZipOutputStream(3)
Man Page