|
Maps SDK for C++ 1.0.0
|
Manages SDK and application settings. More...


Public Member Functions | |
| SettingsService (const String &path) | |
| SettingsService created over the given path. | |
| String | getPath () noexcept |
| Get the path where settings written using this SettingsService object are stored. | |
| void | flush () const noexcept |
| Write any unsaved changes to permanent storage. | |
| void | writeToColdStorage () |
| Write any unsaved changes to permanent storage. | |
| SettingsService & | beginGroup (const String &prefix) noexcept |
| Start a group with the specified name. | |
| SettingsService & | endGroup () noexcept |
| End the current group. | |
| String | getGroup () const noexcept |
| Get current group name. | |
| SettingsService & | setValue (const String &key, const String &value) noexcept |
| Set the value of specified settings key to the given String value. | |
| SettingsService & | setValue (const String &key, const char *value) noexcept |
| Set the value of specified settings key to the given const char* value. | |
| SettingsService & | setValue (const String &key, const char16_t *value) noexcept |
| Set the value of specified settings key to the given const char16_t* value. | |
| SettingsService & | setValue (const String &key, bool value) noexcept |
| Set the value of specified settings key to the given bool value. | |
| SettingsService & | setValue (const String &key, int value) noexcept |
| Set the value of specified settings key to the given int value. | |
| SettingsService & | setValue (const String &key, double value) noexcept |
| Set the value of specified settings key to the given double value. | |
| SettingsService & | setValue (const String &key, LargeInteger value) noexcept |
| Set the value of specified settings key to the given double value. | |
| String | getValue (const String &key, const String &defaultValue) noexcept |
| Get String value for specified settings key. | |
| template<typename TCharPtr> | |
| String | getValue (const String &key, const TCharPtr *defaultValue) noexcept |
| Get String value for specified settings key. | |
| bool | getValue (const String &key, bool defaultValue) noexcept |
| Get bool value for the specified settings key. | |
| int | getValue (const String &key, int defaultValue=0) noexcept |
| Get int value for the specified settings key. | |
| double | getValue (const String &key, double defaultValue=0.) noexcept |
| Get double value for the specified settings key. | |
| LargeInteger | getValue (const String &key, LargeInteger defaultValue) noexcept |
| Get double value for the specified settings key. | |
| int | remove (const String &key) noexcept |
| Remove the specified setting key. | |
| SettingsService & | clear () noexcept |
| Clear all settings ( groups and values ). | |
Manages SDK and application settings.
Implements share-read / write Api object over ISettingsService.
Provides persistent configuration storage and access for SDK-level and feature-specific options.
|
inline |
SettingsService created over the given path.
| [in] | path | The settings file path. Can be absolute or relative to the paths provided on the SDK initialization |
|
inlinenoexcept |
Start a group with the specified name.
| [in] | prefix | The group name |
|
inlinenoexcept |
Clear all settings ( groups and values ).
|
inlinenoexcept |
End the current group.
|
inlinenoexcept |
Write any unsaved changes to permanent storage.
This function is automatically called with 1s delay after last call of setValue. Call flush() after a setValue to ensure immediate sync with storage
|
inlinenoexcept |
Get current group name.
|
inlinenoexcept |
Get the path where settings written using this SettingsService object are stored.
|
inlinenoexcept |
Get bool value for the specified settings key.
If the setting doesn't exist, return defaultValue.
| [in] | key | The settings key |
| [in] | defaultValue | The default value |
|
inlinenoexcept |
Get String value for specified settings key.
If the setting doesn't exist, return defaultValue.
| [in] | key | The settings key |
| [in] | defaultValue | The default value |
|
inlinenoexcept |
Get String value for specified settings key.
If the setting doesn't exist, return defaultValue.
| TCharPtr |
| key | The settings key |
| defaultValue | The default value |
|
inlinenoexcept |
Get double value for the specified settings key.
If the setting doesn't exist, return defaultValue.
| [in] | key | The settings key |
| [in] | defaultValue | The default value |
|
inlinenoexcept |
Get int value for the specified settings key.
If the setting doesn't exist, return defaultValue.
| [in] | key | The settings key |
| [in] | defaultValue | The default value |
|
inlinenoexcept |
Get double value for the specified settings key.
If the setting doesn't exist, return defaultValue.
| [in] | key | The settings key |
| [in] | defaultValue | The default value |
|
inlinenoexcept |
Remove the specified setting key.
Use '*' wildcard to remove all keys matching a pattern
| [in] | key | The settings key |
|
inlinenoexcept |
Set the value of specified settings key to the given bool value.
If the key already exists, the previous value is overwritten.
| [in] | key | The settings key |
| [in] | value | The settings value |
|
inlinenoexcept |
Set the value of specified settings key to the given const char* value.
If the key already exists, the previous value is overwritten.
| [in] | key | The settings key |
| [in] | value | The settings value |
|
inlinenoexcept |
Set the value of specified settings key to the given const char16_t* value.
If the key already exists, the previous value is overwritten.
| [in] | key | The settings key |
| [in] | value | The settings value |
|
inlinenoexcept |
Set the value of specified settings key to the given String value.
If the key already exists, the previous value is overwritten.
| [in] | key | The settings key |
| [in] | value | The settings value |
|
inlinenoexcept |
Set the value of specified settings key to the given double value.
If the key already exists, the previous value is overwritten.
| [in] | key | The settings key |
| [in] | value | The settings value |
|
inlinenoexcept |
Set the value of specified settings key to the given int value.
If the key already exists, the previous value is overwritten.
| [in] | key | The settings key |
| [in] | value | The settings value |
|
inlinenoexcept |
Set the value of specified settings key to the given double value.
If the key already exists, the previous value is overwritten.
| [in] | key | The settings key |
| [in] | value | The settings value |