Skip to content

BitInOutFormat

Oz edited this page Sep 3, 2019 · 16 revisions

The BitInOutFormat class specifies a format available for creating new archives and extract old ones. Usually, the user of the library should not create new formats and, instead, use the ones provided by the BitFormat namespace

#include "bitformat.hpp"

inherits from BitInFormat.

List of all members

Public Members

Return type Name
BitInOutFormat( unsigned char value, const wstring &ext, BitCompressionMethod defaultMethod, FeaturesSet features )
const wstring & extension() const
const FeaturesSet features() const
bool hasFeature( FormatFeatures feature ) const
BitCompressionMethod defaultMethod() const
int value() const
const GUID guid() const
bool operator==( BitInFormat const &other ) const
bool operator!=( BitInFormat const &other ) const

Member Function Documentation

BitInOutFormat( unsigned char value, const wstring &ext, BitCompressionMethod defaultMethod, FeaturesSet features )

Constructs a BitInOutFormat object with a id value, an extension and a set of supported features.


const wstring & extension() const

Returns the default file estension of the archive format


const FeaturesSet features() const

Returns the bitset of the features supported by the format


bool hasFeature( FormatFeatures feature ) const

Checks if the format has a specific feature (see FormatFeatures enum)

Returns true if the format has the feature, false otherwise


BitCompressionMethod defaultMethod() const

Returns the default compression method of the archive format.


int value() const

Returns the value of the format in the 7z SDK.


const GUID guid() const

Returns the GUID that identifies the file format in the 7z SDK.


bool operator==( BitInFormat const &other ) const

Returns true if this format is equal to "other".


bool operator!=( BitInFormat const &other ) const

Returns true if this format is not equal to "other".


Clone this wiki locally