zipios::FileEntry(3)

๐Ÿ“ฆ
version 0.1.5.9+cvs.2007.04.28 ยท 2 versions
, in ubuntu jammy

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 STL find_if algorithm to hunt down a FileEntry in a container whose name (as grabbed with FileEntry::getFileName()) is identical to the name you gave the MatchName constructor. ๐Ÿ”
  • class MatchName โ€” same vibe, function object for the STL find_if algorithm, finds a FileEntry in a container whose name (as grabbed with FileEntry::getName()) is identical to the name you gave the MatchName constructor. ๐Ÿ’…

๐Ÿ’œ 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 โ€” returns true if 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 () const
  • unsigned 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