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

The BitArchiveItemInfo class represents an archived item and that stores all its properties for later use. More...

#include <bit7z/bitarchiveiteminfo.hpp>

+ Inheritance diagram for BitArchiveItemInfo:
+ Collaboration diagram for BitArchiveItemInfo:

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
 
auto itemProperties () const -> map< BitProperty, BitPropVariant >
 
auto itemProperty (BitProperty property) const -> BitPropVariant override
 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 BitArchiveItemInfo class represents an archived item and that stores all its properties for later use.

Member Function Documentation

◆ attributes()

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

Implements BitGenericItem.

◆ crc()

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

◆ creationTime()

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

◆ extension()

auto extension ( ) const -> tstring
inherited
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
noexceptinherited
Returns
the index of the item in the archive.

◆ isDir()

auto isDir ( ) const -> bool
overridevirtualinherited
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
inherited
Returns
true if and only if the item is encrypted.

◆ isSymLink()

auto isSymLink ( ) const -> bool
overridevirtualinherited
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.

◆ itemProperties()

auto itemProperties ( ) const -> map< BitProperty, BitPropVariant >
Returns
a map of all the available (i.e., non-empty) item properties and their respective values.

◆ itemProperty()

auto itemProperty ( BitProperty  property) const -> BitPropVariant
overridevirtual

Gets the specified item property.

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

Implements BitGenericItem.

◆ lastAccessTime()

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

◆ lastWriteTime()

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

◆ name()

auto name ( ) const -> tstring
overridevirtualinherited
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
inherited
Returns
the compressed size of the item.

◆ path()

auto path ( ) const -> tstring
overridevirtualinherited
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
overridevirtualinherited
Returns
the uncompressed size of the item.

Implements BitGenericItem.


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