Function getProperty

Synopsis

#include <include/bitarchiveitem.hpp>

BitPropVariant getProperty(BitProperty property) const

Description

Gets the specified item property.

Parameters

property - the property to be retrieved.

Return
the value of the item property, if available, or an empty BitPropVariant.

Source

Lines 84-87 in src/bitarchiveitem.cpp. Line 89 in include/bitarchiveitem.hpp.

BitPropVariant BitArchiveItem::getProperty( BitProperty property ) const {
    auto prop_it = mItemProperties.find( property );
    return ( prop_it != mItemProperties.end() ? ( *prop_it ).second : BitPropVariant() );
}





Add Discussion as Guest

Log in