Function archiveProperties

Synopsis

#include <include/bitarchiveinfo.hpp>

map< BitProperty, BitPropVariant > archiveProperties() const

Description

Return
a map of all the available (i.e. non empty) archive properties and their respective values.

Source

Lines 42-53 in src/bitarchiveinfo.cpp. Line 101 in include/bitarchiveinfo.hpp.

map< BitProperty, BitPropVariant > BitArchiveInfo::archiveProperties() const {
    map< BitProperty, BitPropVariant > result;
    for ( uint32_t i = kpidNoProperty; i <= kpidCopyLink; ++i ) {
        // Yeah, I know, I double cast property (here and in getArchiveProperty), but the code is easier to read!
        auto property = static_cast<BitProperty>( i );
        BitPropVariant property_value = getArchiveProperty( property );
        if ( !property_value.isEmpty() ) {
            result[ property ] = property_value;
        }
    }
    return result;
}





Add Discussion as Guest

Log in