-
-
Notifications
You must be signed in to change notification settings - Fork 147
BitArchiveItemInfo
The BitArchiveItemInfo class represents an archived item and that stores all its properties for later use.
#include <bit7z/bitarchiveiteminfo.hpp>inherits from BitArchiveItem.
| Return type | Name |
|---|---|
| std::uint32_t | attributes() const final |
| std::uint32_t | crc() const |
| time_type | creationTime() const |
| tstring | extension() const |
| std::uint32_t | index() const noexcept |
| bool | isDir() const final |
| bool | isEncrypted() const |
| bool | isSymLink() const final |
| const std::map< BitProperty, BitPropVariant > & | itemProperties() const |
| BitPropVariant | itemProperty( BitProperty property ) const override |
| time_type | lastAccessTime() const |
| time_type | lastWriteTime() const |
| tstring | name() const final |
| native_string | nativeName() const |
| native_string | nativePath() const |
| std::uint64_t | packSize() const |
| tstring | path() const final |
| sevenzip_string | rawPath() const |
| std::uint64_t | size() const final |
[virtual] std::uint32_t attributes() const final
Returns the item attributes.
std::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).
std::uint32_t index() const noexcept
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).
const std::map< BitProperty, BitPropVariant > & itemProperties() const
Returns a map of all the available (i.e., non-empty) item properties and their respective values.
[virtual] BitPropVariant itemProperty( BitProperty property ) const 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.
time_type lastAccessTime() const
Returns the item last access time.
time_type lastWriteTime() const
Returns the item last write time.
[virtual] tstring name() const final
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 nativeName() const
Note
Same as name(), but returning a native string (i.e., std::wstring on Windows, std::string elsewhere).
Returns the name of the item in the archive, if available or inferable from the path, or an empty string otherwise.
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.
std::uint64_t packSize() const
Returns the compressed size of the item.
[virtual] tstring path() const final
Returns the path of the item in the archive, if available or inferable from the name, or an empty string otherwise.
sevenzip_string rawPath() const
Note
Same as path(), but returning a wide string (the internal string type used by 7-Zip on all OSes).
Returns the path of the item in the archive, if available or inferable from the name, or an empty string otherwise.
[virtual] std::uint64_t size() const final
Returns the uncompressed size of the item.
Copyright © Riccardo Ostani (@rikyoz)
- Bit7zLibrary
- BitArchiveEditor
- BitArchiveReader
- BitArchiveWriter
- BitException
- BitFileCompressor
- BitFileExtractor
- BitMemCompressor
- BitMemExtractor
- BitNestedArchiveReader
- BitStreamCompressor
- BitStreamExtractor
- BitInFormat