Logo Search packages:      
Sourcecode: saga version File versions  Download package

double wxPGProperty::GetAttributeAsDouble ( const wxString &  name,
double  defVal 
) const [inherited]

Returns named attribute, as double, if found. Otherwise defVal is returned.

Definition at line 1640 of file propgrid.cpp.

References wxPGAttributeStorage::FindValue().

    double retVal;
    wxVariant variant = m_attributes.FindValue(name);

    if ( wxPGVariantToDouble(variant, &retVal) )
        return retVal;

    return defVal;

Generated by  Doxygen 1.6.0   Back to index