Function hasFeature

Synopsis

#include <include/bitformat.hpp>

bool hasFeature(FormatFeatures feature) const

Description

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

Parameters

feature - feature to be checked

Return
true if the format has the feature, false otherwise

Source

Lines 567-569 in src/bitformat.cpp. Line 133 in include/bitformat.hpp.

bool BitInOutFormat::hasFeature( FormatFeatures feature ) const {
    return ( mFeatures & FeaturesSet( feature ) ) != 0;
}





Add Discussion as Guest

Log in