Skip to content

BitInOutFormat

Riccardo edited this page Apr 2, 2017 · 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, bitset< FEATURES_COUNT > features )
const wstring & extension() const
const bitset< FEATURES_COUNT > features() const
bool hasFeature( FormatFeatures feature ) 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, bitset< FEATURES_COUNT > 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 bitset< FEATURES_COUNT > 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


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