-
-
Notifications
You must be signed in to change notification settings - Fork 116
BitArchiveItemOffset
The BitArchiveItemOffset class represents an archived item but doesn't store its properties.
#include <bit7z/bitarchiveitemoffset.hpp>
inherits from BitArchiveItem.
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 |
native_string | nativePath() const |
uint64_t | packSize() const |
tstring override | path() const |
uint64_t override | size() const |
Returns the item attributes.
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).
Returns the index of the item in the archive.
Returns true if and only if the item is a directory (i.e., it has the property BitProperty::IsDir).
Returns true if and only if the item is encrypted.
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 nativePath() const -> native_string
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.
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.
Returns the uncompressed size of the item.
Copyright © 2014 - 2024 Riccardo Ostani (@rikyoz)
- Bit7zLibrary
- BitArchiveEditor
- BitArchiveReader
- BitArchiveWriter
- BitException
- BitFileCompressor
- BitFileExtractor
- BitMemCompressor
- BitMemExtractor
- BitStreamCompressor
- BitStreamExtractor
- BitInFormat