Audacity 3.2.0
|
Makes temporary changes to preferences, then rolls them back at destruction. More...
#include <Prefs.h>
Public Types | |
enum | AddResult { NotAdded , Added , PreviouslyAdded } |
Public Member Functions | |
SettingScope () | |
~SettingScope () noexcept | |
SettingScope (const SettingScope &)=delete | |
SettingScope & | operator= (const SettingScope &)=delete |
Static Public Member Functions | |
static AddResult | Add (TransactionalSettingBase &setting) |
Protected Attributes | |
std::set< TransactionalSettingBase * > | mPending |
bool | mCommitted = false |
Makes temporary changes to preferences, then rolls them back at destruction.
No copy or move.
SettingScope::SettingScope | ( | ) |
Definition at line 275 of file Prefs.cpp.
References anonymous_namespace{Prefs.cpp}::sScopes.
|
noexcept |
Definition at line 280 of file Prefs.cpp.
References anonymous_namespace{Prefs.cpp}::sScopes.
|
delete |
|
static |
Definition at line 297 of file Prefs.cpp.
References anonymous_namespace{Prefs.cpp}::sScopes.
Referenced by Setting< T >::Write().
|
delete |
|
protected |