Main Page   Class Hierarchy   Compound List   File List   Compound Members  

zipios::ZipCDirEntry Class Reference

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. More...

#include <ziphead.h>

Inheritance diagram for zipios::ZipCDirEntry

Inheritance graph

[legend]
List of all members.

Public Methods

 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. More...

virtual string getComment () const
 Returns the comment of the entry, if it has one. More...

virtual void setComment ( const string &comment )
 Sets the comment field for the FileEntry. More...

virtual uint32 getLocalHeaderOffset () const
virtual void setLocalHeaderOffset ( uint32 offset )
int getCDirHeaderSize () const
virtual FileEntryclone () const
 Create a heap allocated clone of the object this method is called for. More...

virtual ~ZipCDirEntry ()

Friends

class  operator>>
class  operator<<
class  operator==

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.


Constructor & Destructor Documentation

zipios::ZipCDirEntry::ZipCDirEntry ( const string & _filename = "",
const string & _file_comment = "",
const vector< unsigned char >& _extra_field = vector< unsigned char >() ) [inline]
 

Definition at line 108 of file ziphead.h.

zipios::ZipCDirEntry::~ZipCDirEntry ( ) [inline, virtual]
 

Definition at line 140 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 226 of file ziphead.cpp.

int zipios::ZipCDirEntry::getCDirHeaderSize ( ) const
 

Definition at line 221 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 194 of file ziphead.cpp.

uint32 zipios::ZipCDirEntry::getLocalHeaderOffset ( ) const [virtual]
 

Definition at line 198 of file ziphead.cpp.

ZipCDirEntry & zipios::ZipCDirEntry::operator= ( const class ZipCDirEntry & src ) [inline]
 

Definition at line 214 of file ziphead.h.

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 207 of file ziphead.cpp.

void zipios::ZipCDirEntry::setDefaultWriter ( )
 

Definition at line 184 of file ziphead.cpp.

void zipios::ZipCDirEntry::setLocalHeaderOffset ( uint32 offset ) [virtual]
 

Definition at line 202 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 213 of file ziphead.cpp.


Friends And Related Function Documentation

ostream& operator<< ( ostream & os,
const ZipCDirEntry & zcdh ) [friend]
 

Definition at line 119 of file zipheadio.cpp.

bool operator== ( const ZipLocalEntry & zlh,
const ZipCDirEntry & ze ) [friend]
 

Reimplemented from zipios::ZipLocalEntry.

Definition at line 19 of file ziphead.cpp.

istream& operator>> ( istream & is,
ZipCDirEntry & zcdh ) [friend]
 

Definition at line 57 of file zipheadio.cpp.


The documentation for this class was generated from the following files:
Generated at Tue Aug 14 20:39:59 2001 for Zipios++ by doxygen1.2.0 written by Dimitri van Heesch, © 1997-2000