Function name

Synopsis

#include <include/bitarchiveitem.hpp>

wstring name() const

Description

Return
the name of the item, if available or inferable from the path, or an empty string otherwise.

Source

Lines 43-50 in src/bitarchiveitem.cpp. Line 53 in include/bitarchiveitem.hpp.

wstring BitArchiveItem::name() const {
    BitPropVariant propvar = getProperty( BitProperty::Name );
    if ( propvar.isEmpty() ) {
        propvar = getProperty( BitProperty::Path );
        return propvar.isEmpty() ? L"" : fsutil::filename( propvar.getString(), true );
    }
    return propvar.getString();
}





Add Discussion as Guest

Log in