Function getItemProperty

Synopsis

#include <include/bitinputarchive.hpp>

BitPropVariant getItemProperty(uint32_t index, BitProperty property) const

Description

Gets the specified property of an item in the archive.

Parameters

index - the index (in the archive) of the item.

property - the property to be retrieved.

Return
the current value of the item property or an empty BitPropVariant if the item has no value for the property.

Source

Lines 137-144 in src/bitinputarchive.cpp. Line 57 in include/bitinputarchive.hpp.

BitPropVariant BitInputArchive::getItemProperty( uint32_t index, BitProperty property ) const {
    BitPropVariant propvar;
    HRESULT res = mInArchive->GetProperty( index, static_cast<PROPID>( property ), &propvar );
    if ( res != S_OK ) {
        throw BitException( L"Could not retrieve property for item at index " + std::to_wstring( index ), res );
    }
    return propvar;
}





Add Discussion as Guest

Log in