Logo Search packages:      
Sourcecode: ucimf-openvanilla version File versions  Download package

virtual int OVDictionary::getIntegerWithDefault ( const char *  key,
int  value 
) [inline, virtual]

getIntegerWithDefault Try to retrieve the integer value of a configuration key from the dictionary, if the configuration key does not exist, use the default value.

Parameters:
key The configuration key.
value The default integer value.
Returns:
The integer value of the configuration key.

Definition at line 483 of file OpenVanilla.h.

References getInteger(), keyExist(), and setInteger().

                                                                  {
        if (!keyExist(key)) setInteger(key, value); return getInteger(key);
    }


Generated by  Doxygen 1.6.0   Back to index