Skip to content

BitArchiveItem

Oz edited this page Sep 25, 2024 · 10 revisions

The BitArchiveItem class represents a generic item inside an archive.

#include <bit7z/bitarchiveitem.hpp>

inherits from BitGenericItem.

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=0 itemProperty( BitProperty property ) const
time_type lastAccessTime() const
time_type lastWriteTime() const
tstring override name() const
native_string nativePath() const
uint64_t packSize() const
tstring override path() const
uint64_t override size() const

Member Function Documentation

[virtual] uint32_t override attributes() const

Returns the item attributes.


uint32_t crc() const

Returns the CRC value of the item.


time_type creationTime() const

Returns the item creation time.


tstring extension() const

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


uint32_t index() const noexcept

Returns the index of the item in the archive.


[virtual] bool override isDir() const

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


bool isEncrypted() const

Returns true if and only if the item is encrypted.


[virtual] bool override isSymLink() const

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


[pure virtual] BitPropVariant=0 itemProperty( BitProperty property ) const

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.


time_type lastAccessTime() const

Returns the item last access time.


time_type lastWriteTime() const

Returns the item last write time.


[virtual] tstring override name() const

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.


native_string nativePath() const

Note

Same as path(), but returning a native string (i.e., std::wstring on Windows, std::string elsewhere).

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


uint64_t packSize() const

Returns the compressed size of the item.


[virtual] tstring override path() const

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


[virtual] uint64_t override size() const

Returns the uncompressed size of the item.


Clone this wiki locally