Skip to content

BitArchiveItemOffset

Oz edited this page Oct 8, 2023 · 7 revisions

The BitArchiveItemOffset class represents an archived item but doesn't store its properties.

#include <bit7z/bitarchiveitemoffset.hpp>

inherits from BitArchiveItem.

List of all members

Public Members

Return type Name
uint32_t override attributes() const
uint32_t crc() const
time_type creationTime() const
tstring extension() const
uint32_t index() const noexcept
bool override isDir() const
bool isEncrypted() const
bool override isSymLink() const
BitPropVariant override itemProperty( BitProperty property ) const
time_type lastAccessTime() const
time_type lastWriteTime() const
tstring override name() const
uint64_t packSize() const
tstring override path() const
uint64_t override size() const

Member Function Documentation

[virtual] auto attributes() const -> uint32_t override

Returns the item attributes.

auto crc() const -> uint32_t

Returns the CRC value of the item.

auto creationTime() const -> time_type

Returns the item creation time.

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).

auto index() const noexcept -> uint32_t

Returns the index of the item in the archive.

[virtual] auto isDir() const -> bool override

Returns true if and only if the item is a directory (i.e., it has the property BitProperty::IsDir).

auto isEncrypted() const -> bool

Returns true if and only if the item is encrypted.

[virtual] auto isSymLink() const -> bool override

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).

[virtual] auto itemProperty( BitProperty property ) const -> BitPropVariant override

Gets the specified item property.

Parameters:

  • property: the property to be retrieved.

Returns the value of the item property, if available, or an empty BitPropVariant.

auto lastAccessTime() const -> time_type

Returns the item last access time.

auto lastWriteTime() const -> time_type

Returns the item last write time.

[virtual] auto name() const -> tstring override

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.

auto packSize() const -> uint64_t

Returns the compressed size of the item.

[virtual] auto path() const -> tstring override

Returns the path of the item in the archive, if available or inferable from the name, or an empty string otherwise.

[virtual] auto size() const -> uint64_t override

Returns the uncompressed size of the item.

Clone this wiki locally