bit7z 4.0.0
A C++ library for interfacing with the 7-zip shared libs.
Loading...
Searching...
No Matches
BitGenericItem Class Referenceabstract

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

#include <bit7z/bitgenericitem.hpp>

+ Inheritance diagram for BitGenericItem:

Public Member Functions

virtual auto attributes () const -> uint32_t=0
 
virtual auto isDir () const -> bool=0
 
virtual auto isSymLink () const -> bool=0
 
virtual auto itemProperty (BitProperty property) const -> BitPropVariant=0
 Gets the specified item property.
 
virtual auto name () const -> tstring=0
 
virtual auto path () const -> tstring=0
 
virtual auto size () const -> uint64_t=0
 

Detailed Description

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

Member Function Documentation

◆ attributes()

virtual auto attributes ( ) const -> uint32_t
pure virtual
Returns
the item attributes.

Implemented in BitArchiveItem.

◆ isDir()

virtual auto isDir ( ) const -> bool
pure virtual
Returns
true if and only if the item is a directory (i.e., it has the property BitProperty::IsDir).

Implemented in BitArchiveItem.

◆ isSymLink()

virtual auto isSymLink ( ) const -> bool
pure virtual
Returns
true if and only if the item is a symbolic link.

Implemented in BitArchiveItem.

◆ itemProperty()

virtual auto itemProperty ( BitProperty  property) const -> BitPropVariant
pure virtual

Gets the specified item property.

Parameters
propertythe property to be retrieved.
Returns
the value of the item property, if available, or an empty BitPropVariant.

Implemented in BitArchiveItemInfo, and BitArchiveItemOffset.

◆ name()

virtual auto name ( ) const -> tstring
pure virtual
Returns
the name of the item, if available or inferable from the path, or an empty string otherwise.

Implemented in BitArchiveItem.

◆ path()

virtual auto path ( ) const -> tstring
pure virtual
Returns
the path of the item.

Implemented in BitArchiveItem.

◆ size()

virtual auto size ( ) const -> uint64_t
pure virtual
Returns
the uncompressed size of the item.

Implemented in BitArchiveItem.


The documentation for this class was generated from the following file: