Skip to content

BitGenericItem

Oz edited this page Sep 25, 2024 · 5 revisions

The BitGenericItem interface class represents a generic item (either inside or outside an archive).

#include <bit7z/bitgenericitem.hpp>

List of all members

Public Members

Return type Name
uint32_t=0 attributes() const
bool=0 isDir() const
bool=0 isSymLink() const
BitPropVariant=0 itemProperty( BitProperty property ) const
tstring=0 name() const
tstring=0 path() const
uint64_t=0 size() const

Member Function Documentation

[pure virtual] uint32_t=0 attributes() const

Returns the item attributes.


[pure virtual] bool=0 isDir() const

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


[pure virtual] bool=0 isSymLink() const

Returns true if and only if the item is a symbolic link.


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


[pure virtual] tstring=0 name() const

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


[pure virtual] tstring=0 path() const

Returns the path of the item.


[pure virtual] uint64_t=0 size() const

Returns the uncompressed size of the item.


Clone this wiki locally