getString#
Fully qualified name: carb::settings::getString
Defined in carb/settings/SettingsUtils.h
- inline std::string carb::settings::getString( )#
Retrieves a std::string from a string-type setting for simplicity.
Equivalent to:
auto p = settings->getStringBufferS(path); return p ? std::string(p) : defaultValue;
See also
- Parameters:
settings – The acquired ISettings interface.
path – The setting key path to retrieve (must be a string or
defaultValuewill be returned).defaultValue – The value that is returned if
pathis not a valid path or not a string setting.
- Returns:
A
std::stringrepresentation of the item value.