|
stmm-games-doc
0.32.0
|

Public Member Functions | |
| virtual | ~AllPreferencesLoader () noexcept=default |
| virtual shared_ptr< AllPreferences > | getPreferences () const noexcept=0 |
| Load or create a new (or recycled) AllPreferences instance. More... | |
| virtual shared_ptr< AllPreferences > | getPreferencesCopy (const shared_ptr< AllPreferences > &refAllPreferences) const noexcept=0 |
| Create a copy of an AllPreferences instance. More... | |
| virtual bool | updatePreferences (const shared_ptr< AllPreferences > &refAllPreferences) noexcept=0 |
| Persist an AllPreferences instance. More... | |
|
virtualdefaultnoexcept |
|
pure virtualnoexcept |
Load or create a new (or recycled) AllPreferences instance.
If there is a persisted instance it is loaded, otherwise it is created with default values.
Implemented in stmg::XmlPreferencesLoader.
|
pure virtualnoexcept |
Create a copy of an AllPreferences instance.
This function should be preferred over just using the copy constructor of the instance because it allows the loader to possibly recycle another instance.
| refAllPreferences | The instance to copy from. Cannot be null. |
Implemented in stmg::XmlPreferencesLoader.
|
pure virtualnoexcept |
Persist an AllPreferences instance.
| refAllPreferences | The instance to persist. Cannot be null. |
Implemented in stmg::XmlPreferencesLoader.
1.8.13