zipios::GZIPOutputStream(3) Library Functions Manual zipios::GZIPOutputStream(3)NAME
zipios::GZIPOutputStream -
SYNOPSIS
#include <gzipoutputstream.h>
Public Member Functions
GZIPOutputStream (std::ostream &os)
GZIPOutputStream constructor.
GZIPOutputStream (const std::string &filename)
GZIPOutputStream constructor.
void setFilename (const string &filename)
void setComment (const string &comment)
void close ()
Calls finish and closes the stream.
void finish ()
Finishes the stream.
virtual ~GZIPOutputStream ()
Destructor.
Detailed Description
GZIPOutputStream is an ostream that writes the output to a gz file. The interface approximates the interface of the Java GZIPOutputStream.
Definition at line 17 of file gzipoutputstream.h.
Constructor & Destructor Documentation
zipios::GZIPOutputStream::GZIPOutputStream (std::ostream &os) [explicit]
GZIPOutputStream constructor. Parameters:
os ostream to which the compressed zip archive is written.
Definition at line 13 of file gzipoutputstream.cpp.
zipios::GZIPOutputStream::GZIPOutputStream (const std::string &filename) [explicit]
GZIPOutputStream constructor. filename to write the gzip archive to.
Definition at line 22 of file gzipoutputstream.cpp.
zipios::GZIPOutputStream::~GZIPOutputStream () [virtual]
Destructor.
Definition at line 51 of file gzipoutputstream.cpp.
Member Function Documentation
void zipios::GZIPOutputStream::close ()
Calls finish and closes the stream.
Definition at line 39 of file gzipoutputstream.cpp.
void zipios::GZIPOutputStream::finish ()
Finishes the stream.
Definition at line 46 of file gzipoutputstream.cpp.
Author
Generated automatically by Doxygen for Zipios++ from the source code.
Zipios++ Mon Oct 10 2011 zipios::GZIPOutputStream(3)
Check Out this Related 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)