zipios::FileEntry(3)
zipios::FileEntry ๐
okay bestie, welcome to the Library Functions Manual for zipios::FileEntry โ this is a C++ library page, so grab a boba and let's get into it โจ
โจ NAME โจ
zipios::FileEntry โ A FileEntry represents an entry in a FileCollection. ๐๏ธ
๐ธ SYNOPSIS ๐ธ
#include <fileentry.h>
Inherited by zipios::BasicEntry, and zipios::ZipLocalEntry. ๐
๐ฆ Classes ๐ฆ
class MatchFileNameโ a function object you use with the STLfind_ifalgorithm to hunt down a FileEntry in a container whose name (as grabbed withFileEntry::getFileName()) is identical to the name you gave theMatchNameconstructor. ๐class MatchNameโ same vibe, function object for the STLfind_ifalgorithm, finds a FileEntry in a container whose name (as grabbed withFileEntry::getName()) is identical to the name you gave theMatchNameconstructor. ๐
๐ Public Member Functions ๐
virtual string getComment () const =0โ returns the comment of the entry, if it has one. ๐ฌvirtual uint32 getCompressedSize () const =0โ returns the compressed size of the entry. ๐ฆvirtual uint32 getCrc () const =0โ returns the Crc for the entry, if it has one. ๐งฎvirtual vector< unsigned char > getExtra () const =0โ returns a vector of bytes of extra data that may be stored with the entry. ๐virtual StorageMethod getMethod () const =0โ returns the method used to store the entry in the FileCollection. ๐ ๏ธvirtual string getName () const =0โ returns the full filename of the entry, including a path if the entry is stored in a subfolder. ๐virtual string getFileName () const =0โ returns the filename of the entry. ๐ท๏ธvirtual uint32 getSize () const =0โ returns the (uncompressed) size of the entry data. ๐virtual int getTime () const =0โ returns the date and time of FIXME: what? " โฐvirtual bool isValid () const =0โ any method or operator that initializes a FileEntry may set a flag that says whether the read entry is valid or not. ๐ฆvirtual bool isDirectory () const =0โ returnstrueif the entry is a directory. ๐virtual void setComment (const string &comment)=0โ sets the comment field for the FileEntry. โ๏ธvirtual void setCompressedSize (uint32 size)=0โ set the compressed size field of the entry. ๐virtual void setCrc (uint32 crc)=0โ sets the crc field. ๐ขvirtual void setExtra (const vector< unsigned char > &extra)=0โ sets the extra field. ๐virtual void setMethod (StorageMethod method)=0โ sets the storage method field for the entry. โ๏ธvirtual void setName (const string &name)=0โ sets the name field for the entry. ๐๏ธvirtual void setSize (uint32 size)=0โ sets the size field for the entry. ๐virtual void setTime (int time)=0โ sets the time field for the entry. ๐ฐ๏ธvirtual string toString () const =0โ returns a human-readable string representation of the entry. ๐ชvirtual FileEntry * clone () const =0โ create a heap allocated clone of the object this method is called for. ๐งฌvirtual ~FileEntry ()โ FileEntry destructor. ๐
๐ซถ Protected Member Functions ๐ซถ
void ref () constunsigned int unref () const
๐ Protected Attributes ๐
ReferenceCount< FileEntry > _refcount
๐ Friends ๐
class SimpleSmartPointer< FileEntry >class SimpleSmartPointer< const FileEntry >
๐ Detailed Description ๐
A FileEntry represents an entry in a FileCollection. ๐๏ธ
The interface is a copy of the ZipEntry interface from the java.util.zip package. The name has been changed to FileEntry, as FileCollection is a more general abstraction, that covers other types of file collections than just zip files. no cap. ๐ง
Definition at line 52 of file fileentry.h. ๐
๐ Constructor & Destructor Documentation ๐
virtual zipios::FileEntry::~FileEntry () [inline], [virtual]
FileEntry destructor. say bye bestie ๐ญ
Definition at line 163 of file fileentry.h. ๐
๐ฅ Member Function Documentation ๐ฅ
virtual FileEntry* zipios::FileEntry::clone () const [pure 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. (yes, that's on you, own it ๐ซก)
Returns A heap allocated copy of the object this method is called for.
Implemented in zipios::ZipCDirEntry, zipios::ZipLocalEntry, and zipios::BasicEntry.
virtual string zipios::FileEntry::getComment () const [pure 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.
Implemented in zipios::ZipCDirEntry, zipios::ZipLocalEntry, and zipios::BasicEntry.
virtual uint32 zipios::FileEntry::getCompressedSize () const [pure virtual]
Returns the compressed size of the entry. If the entry is not stored in a compressed format, the uncompressed size is returned. ๐ค
Returns the compressed size of the entry. If the entry is stored without compression the uncompressed size is returned.
Implemented in zipios::ZipLocalEntry, and zipios::BasicEntry.
virtual uint32 zipios::FileEntry::getCrc () const [pure virtual]
Returns the Crc for the entry, if it has one. FIXME: what is returned if it doesn't have one? ๐ค (the original really said that, I'm just the messenger ๐)
Returns the Crc for the entry, if it has one.
Implemented in zipios::ZipLocalEntry, and zipios::BasicEntry.
virtual vector< unsigned char > zipios::FileEntry::getExtra () const [pure virtual]
Returns a vector of bytes of extra data that may be stored with the entry. ๐
Returns A vector< unsigned char > of extra bytes that may potentially be associated with an entry.
Implemented in zipios::ZipLocalEntry, and zipios::BasicEntry.
virtual string zipios::FileEntry::getFileName () const [pure virtual]
Returns the filename of the entry. ๐ท๏ธ
Returns Returns the filename of the entry.
Implemented in zipios::ZipLocalEntry, and zipios::BasicEntry.
virtual StorageMethod zipios::FileEntry::getMethod () const [pure virtual]
Returns the method used to store the entry in the FileCollection. ๐งฐ
Returns the storage method used to store the entry in the collection.
See also StorageMethod.
Implemented in zipios::ZipLocalEntry, and zipios::BasicEntry.
virtual string zipios::FileEntry::getName () const [pure virtual]
Returns the full filename of the entry, including a path if the entry is stored in a subfolder. ๐บ๏ธ
Returns the filename of the entry, including path if the entry is stored in a sub-folder.
Implemented in zipios::ZipLocalEntry, and zipios::BasicEntry.
virtual uint32 zipios::FileEntry::getSize () const [pure virtual]
Returns the (uncompressed) size of the entry data. ๐ซง
Returns Returns the (uncompressed) size of the entry.
Implemented in zipios::ZipLocalEntry, and zipios::BasicEntry.
virtual int zipios::FileEntry::getTime () const [pure virtual]
Returns the date and time of FIXME: what? โณ
Returns the date and time of the entry.
Implemented in zipios::ZipLocalEntry, and zipios::BasicEntry.
virtual bool zipios::FileEntry::isDirectory () const [pure virtual]
Returns true if the entry is a directory. A directory entry is an entry which name ends with a separator ('/' for Unix systems, '\' for Windows and DOS systems. ๐
Returns true if the entry is a directory.
Implemented in zipios::ZipLocalEntry, and zipios::BasicEntry.
virtual bool zipios::FileEntry::isValid () const [pure virtual]
Any method or operator that initializes a FileEntry may set a flag, that specifies whether the read entry is valid or not. If it isn't this method returns false. ๐ฉ
Returns true if the FileEntry has been parsed succesfully.
Implemented in zipios::ZipLocalEntry, and zipios::BasicEntry.
virtual void zipios::FileEntry::setComment (const string & comment) [pure virtual]
Sets the comment field for the FileEntry. ๐ฌ
Parameters comment โ string with the new comment.
Implemented in zipios::ZipCDirEntry, zipios::ZipLocalEntry, and zipios::BasicEntry.
virtual void zipios::FileEntry::setCompressedSize (uint32 size) [pure virtual]
Set the compressed size field of the entry. ๐ฆ
Parameters size โ value to set the compressed size field of the entry to.
Implemented in zipios::ZipLocalEntry, and zipios::BasicEntry.
virtual void zipios::FileEntry::setCrc (uint32 crc) [pure virtual]
Sets the crc field. ๐ข
Parameters crc โ value to set the crc field to.
Implemented in zipios::ZipLocalEntry, and zipios::BasicEntry.
virtual void zipios::FileEntry::setExtra (const vector< unsigned char > & extra) [pure virtual]
Sets the extra field. ๐
Parameters extra โ the extra field is set to this value.
Implemented in zipios::ZipLocalEntry, and zipios::BasicEntry.
virtual void zipios::FileEntry::setMethod (StorageMethod method) [pure virtual]
Sets the storage method field for the entry. โ๏ธ
Parameters method โ the method field is set to the specified value.
Implemented in zipios::ZipLocalEntry, and zipios::BasicEntry.
virtual void zipios::FileEntry::setName (const string & name) [pure virtual]
Sets the name field for the entry. ๐๏ธ
Parameters name โ the name field is set to the specified value.
Implemented in zipios::ZipLocalEntry, and zipios::BasicEntry.
virtual void zipios::FileEntry::setSize (uint32 size) [pure virtual]
Sets the size field for the entry. ๐
Parameters size โ the size field is set to this value.
Implemented in zipios::ZipLocalEntry, and zipios::BasicEntry.
virtual void zipios::FileEntry::setTime (int time) [pure virtual]
Sets the time field for the entry. ๐ฐ๏ธ
Parameters time โ the time field is set to the specified value.
Implemented in zipios::ZipLocalEntry, and zipios::BasicEntry.
virtual string zipios::FileEntry::toString () const [pure virtual]
Returns a human-readable string representation of the entry. ๐ช
Returns a human-readable string representation of the entry.
Implemented in zipios::ZipCDirEntry, zipios::ZipLocalEntry, and zipios::BasicEntry.
๐ Author ๐
Generated automatically by Doxygen for Zipios++ from the source code. (yes bestie, a robot wrote it, but I translated it into vibes โจ)
Zipios++ ๐ธ Tue Mar 24 2020 ๐ธ zipios::FileEntry(3)
and that's the whole page, periodt ๐ ๐ซถ go forth and file-entry, bestie ๐๐ฆ
๐ฆ 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