-
-
Notifications
You must be signed in to change notification settings - Fork 119
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 |
---|---|
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 |
map< BitProperty, BitPropVariant > | itemProperties() 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.
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).
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).
map< BitProperty, BitPropVariant > itemProperties() const
Returns a map of all the available (i.e., non-empty) item properties and their respective values.
[virtual] BitPropVariant override 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.
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.
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