|
stmm-games-doc
0.32.0
|

Public Member Functions | |
| XmlPreferencesLoader (const shared_ptr< StdConfig > &refStdConfig, const shared_ptr< XmlGameFiles > &refXmlGameFiles) | |
| shared_ptr< AllPreferences > | getPreferences () const noexcept override |
| Load or create a new (or recycled) AllPreferences instance. More... | |
| shared_ptr< AllPreferences > | getPreferencesCopy (const shared_ptr< AllPreferences > &refAllPreferences) const noexcept override |
| Create a copy of an AllPreferences instance. More... | |
| bool | updatePreferences (const shared_ptr< AllPreferences > &refAllPreferences) noexcept override |
| Persist an AllPreferences instance. More... | |
Public Member Functions inherited from stmg::AllPreferencesLoader | |
| virtual | ~AllPreferencesLoader () noexcept=default |
| stmg::XmlPreferencesLoader::XmlPreferencesLoader | ( | const shared_ptr< StdConfig > & | refStdConfig, |
| const shared_ptr< XmlGameFiles > & | refXmlGameFiles | ||
| ) |
|
overridevirtualnoexcept |
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.
Implements stmg::AllPreferencesLoader.
|
overridevirtualnoexcept |
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. |
Implements stmg::AllPreferencesLoader.
|
overridevirtualnoexcept |
Persist an AllPreferences instance.
| refAllPreferences | The instance to persist. Cannot be null. |
Implements stmg::AllPreferencesLoader.
1.8.13