Function path

Synopsis

#include <include/bitarchiveitem.hpp>

wstring path() const

Description

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

Source

Lines 60-67 in src/bitarchiveitem.cpp. Line 65 in include/bitarchiveitem.hpp.

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





Add Discussion as Guest

Log in