-
-
Notifications
You must be signed in to change notification settings - Fork 119
BitInOutFormat
The BitInOutFormat class specifies a format available for creating new archives and extract old ones.
🛈 Note: Usually, the user of the library should not create new formats and, instead, use the ones provided by the BitFormat namespace.
#include <bit7z/bitformat.hpp>
inherits from BitInFormat.
Return type | Name |
---|---|
constexpr | BitInOutFormat( unsigned char value, const tchar* ext, BitCompressionMethod defaultMethod, FormatFeatures features ) noexcept |
BitCompressionMethod | defaultMethod() const noexcept |
const tchar * | extension() const noexcept |
FormatFeatures | features() const noexcept |
bool | hasFeature( FormatFeatures feature ) const noexcept |
bool | operator!=( BitInFormat const& other ) const noexcept |
bool | operator==( BitInFormat const& other ) const noexcept |
unsigned char | value() const noexcept |
constexpr BitInOutFormat( unsigned char value, const tchar* ext, BitCompressionMethod defaultMethod, FormatFeatures features ) noexcept
Constructs a BitInOutFormat object with an ID value, an extension and a set of supported features.
Parameters:
- value: the value of the format in the 7z SDK.
- ext: the default file extension of the archive format.
- defaultMethod: the default method used for compressing the archive format.
-
features: the set of features supported by the archive format
auto defaultMethod() const noexcept -> BitCompressionMethod
Returns the default method used for compressing the archive format.
auto extension() const noexcept -> const tchar*
Returns the default file extension of the archive format.
auto features() const noexcept -> FormatFeatures
Returns the bitset of the features supported by the format.
auto hasFeature( FormatFeatures feature ) const noexcept -> bool
Checks if the format has a specific feature (see FormatFeatures enum).
Parameters:
- feature: feature to be checked.
Returns a boolean value indicating whether the format has the given feature.
auto operator!=( BitInFormat const& other ) const noexcept -> bool
Parameters:
- other: the target object to compare to.
Returns a boolean value indicating whether this format is different from the "other" or not.
auto operator==( BitInFormat const& other ) const noexcept -> bool
Parameters:
- other: the target object to compare to.
Returns a boolean value indicating whether this format is equal to the "other" or not.
Returns the value of the format in the 7z SDK.
Copyright © 2014 - 2024 Riccardo Ostani (@rikyoz)
- Bit7zLibrary
- BitArchiveEditor
- BitArchiveReader
- BitArchiveWriter
- BitException
- BitFileCompressor
- BitFileExtractor
- BitMemCompressor
- BitMemExtractor
- BitStreamCompressor
- BitStreamExtractor
- BitInFormat