Ice 3.8
C++ API Reference
Loading...
Searching...
No Matches

◆ getPropertyAsIntWithDefault()

int Ice::Properties::getPropertyAsIntWithDefault ( std::string_view key,
int value )

Gets a property as an integer.

Parameters
keyThe property key.
valueThe default value to return if the property does not exist.
Returns
The property value interpreted as an integer, or the default value of the property is not set.
Exceptions
PropertyExceptionThrown when the property value is not a valid integer.
See also
setProperty