zipios::ZipCDirEntry(3)
π zipios::ZipCDirEntry β Library Functions Manual, section 3 π
okay bestie, pull up a chair, because we're about to get intimate with a very specific little C++ class from Zipios++. It's zipios::ZipCDirEntry, it lives in section 3 of the manual (the Library Functions Manual, iykyk), and honestly? It's giving "supporting character who carries the whole plot." π
β¨ NAME β¨
zipios::ZipCDirEntry β a specialization of ZipLocalEntry that adds 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. π
Like, think of it this way: the local headers are the trailer, and this class is the director's cut with the deleted scenes. central directory exclusives only, no cap β¨
πΈ 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 >())β the constructor, with all three params defaulted, so you can absolutely just roll up empty-handed. π«Άvoid setDefaultWriter ()β sets the default writer. that's it, that's the tweet. βZipCDirEntry & operator= (const class ZipCDirEntry &src)β assignment operator, taking aconst class ZipCDirEntry &src. copy-paste but make it official.virtual string toString () constβ returns a human-readable string representation of the entry. it's literally the entry's "tell me about yourself" moment. π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 theFileEntry.virtual uint32 getLocalHeaderOffset () constβ hands you the local header offset, no explanation, no drama. π¦virtual void setLocalHeaderOffset (uint32 offset)β sets that local header offset. the yin to the previous yang.int getCDirHeaderSize () constβ returns the central directory header size, as anint. yes, it's spelled with a capital D and a lowercase ir, we don't make the rules. πvirtual FileEntry * clone () constβ create a heap allocated clone of the object this method is called for. main character energy, duplicated. β¨
π«Ά Friends π«Ά
istream & operator>> (istream &is, ZipCDirEntry &zcdh)ostream & operator<< (ostream &os, const ZipCDirEntry &zcdh)bool operator== (const ZipLocalEntry &zlh, const ZipCDirEntry &ze)
they're friends, they get special access, that's the whole vibe. π
π Additional Inherited Members π
(yes queen, there are more β they come from up the inheritance chain. ZipLocalEntry said "here, take these too.") π§
π 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.
β οΈ bestie, listen: you are on the hook for deleteing this clone. the class made it, but the class is not cleaning it up. that's a you problem now, and by "you problem" I mean memory leak if you forget. π
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.
and that's the whole page, bestie. no notes, ate, periodt. π β¨
πΈ this has been Zipios++, on Tue Mar 24 2020, page zipios::ZipCDirEntry(3) β go forth and central-directory responsibly. π
π¦ where this page comes from
- ubuntu jammy: libzipios++-dev 0.1.5.9+cvs.2007.04.28-11build1 Β· LGPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms