getStringFromItemValue#
Fully qualified name: carb::settings::getStringFromItemValue
Defined in carb/settings/SettingsUtils.h
- inline omni::string carb::settings::getStringFromItemValue(
- const ISettings *settings,
- cpp::string_view path,
- cpp::string_view defaultValue = {},
Retrieves a string from a setting key for simplicity.
Typically to retrieve a string value from dictionary::Item,
- Parameters:
settings – The acquired ISettings interface.
path – The setting key path to retrieve.
defaultValue – The value that is returned if
pathis not a valid path.
- Returns:
A string representation of the item value, or
defaultValue.