bit7z 4.0.0
A C++ library for interfacing with the 7-zip shared libs.
Loading...
Searching...
No Matches
BitArchiveItem Class Referenceabstract

The BitArchiveItem class represents a generic item inside an archive. More...

#include <bit7z/bitarchiveitem.hpp>

+ Inheritance diagram for BitArchiveItem:
+ Collaboration diagram for BitArchiveItem:

Public Member Functions

auto attributes () const -> uint32_t override
 
auto crc () const -> uint32_t
 
auto creationTime () const -> time_type
 
auto extension () const -> tstring
 
auto index () const noexcept -> uint32_t
 
auto isDir () const -> bool override
 
auto isEncrypted () const -> bool
 
auto isSymLink () const -> bool override
 
virtual auto itemProperty (BitProperty property) const -> BitPropVariant=0
 Gets the specified item property.
 
auto lastAccessTime () const -> time_type
 
auto lastWriteTime () const -> time_type
 
auto name () const -> tstring override
 
auto packSize () const -> uint64_t
 
auto path () const -> tstring override
 
auto size () const -> uint64_t override
 

Detailed Description

The BitArchiveItem class represents a generic item inside an archive.

Member Function Documentation

◆ attributes()

auto attributes ( ) const -> uint32_t
overridevirtual
Returns
the item attributes.

Implements BitGenericItem.

◆ crc()

auto crc ( ) const -> uint32_t
Returns
the CRC value of the item.

◆ creationTime()

auto creationTime ( ) const -> time_type
Returns
the item creation time.

◆ extension()

auto extension ( ) const -> tstring
Returns
the extension of the item, if available or if it can be inferred from the name; otherwise it returns an empty string (e.g., when the item is a folder).

◆ index()

auto index ( ) const -> uint32_t
noexcept
Returns
the index of the item in the archive.

◆ isDir()

auto isDir ( ) const -> bool
overridevirtual
Returns
true if and only if the item is a directory (i.e., it has the property BitProperty::IsDir).

Implements BitGenericItem.

◆ isEncrypted()

auto isEncrypted ( ) const -> bool
Returns
true if and only if the item is encrypted.

◆ isSymLink()

auto isSymLink ( ) const -> bool
overridevirtual
Returns
true if and only if the item is a symbolic link (either has a non-empty BitProperty::SymLink, or it has POSIX/Win32 symbolic link file attributes).

Implements BitGenericItem.

◆ itemProperty()

virtual auto itemProperty ( BitProperty  property) const -> BitPropVariant
pure virtualinherited

Gets the specified item property.

Parameters
propertythe property to be retrieved.
Returns
the value of the item property, if available, or an empty BitPropVariant.

Implemented in BitArchiveItemInfo, and BitArchiveItemOffset.

◆ lastAccessTime()

auto lastAccessTime ( ) const -> time_type
Returns
the item last access time.

◆ lastWriteTime()

auto lastWriteTime ( ) const -> time_type
Returns
the item last write time.

◆ name()

auto name ( ) const -> tstring
overridevirtual
Returns
the item's name; if not available, it tries to get it from the element's path or, if not possible, it returns an empty string.

Implements BitGenericItem.

◆ packSize()

auto packSize ( ) const -> uint64_t
Returns
the compressed size of the item.

◆ path()

auto path ( ) const -> tstring
overridevirtual
Returns
the path of the item in the archive, if available or inferable from the name, or an empty string otherwise.

Implements BitGenericItem.

◆ size()

auto size ( ) const -> uint64_t
overridevirtual
Returns
the uncompressed size of the item.

Implements BitGenericItem.


The documentation for this class was generated from the following file: