![]() |
Scanframe Modular Application 0.1.0
|
Begins and ends a scope of settings for a section. When create it calls beginGroup(...) and when out of scop it calls endGroup(). More...
#include <ConfigStore.h>
Public Member Functions | |
| Scope (ConfigStore &cs, QAnyStringView section) | |
| Constructor passing a section of the scope. | |
| Scope (const Scope &)=delete | |
| Forbidden copy constructor. | |
| Scope (Scope &&cs) noexcept | |
| Move constructor. | |
| Scope & | operator= (Scope &&cs) noexcept |
| Move constructor. | |
| ~Scope () | |
| Destructor. | |
| ConfigStore * | operator-> () |
| Allows access to temporary settings having a group on the stack. | |
| QSettings & | settings () |
| Gets the settings instance with the section/group set. | |
| ConfigStore & | configStore () |
| Gets the linked config store. | |
Begins and ends a scope of settings for a section. When create it calls beginGroup(...) and when out of scop it calls endGroup().
|
explicit |
Constructor passing a section of the scope.
| cs | Config store it operates on. |
| section | When empty '{}' the default section is used. ConfigStore::Scope(my_cfg_store).settings()
Begins and ends a scope of settings for a section. When create it calls beginGroup(.... Definition ConfigStore.h:351 QSettings & settings() Gets the settings instance with the section/group set. |
|
delete |
Forbidden copy constructor.
|
noexcept |
Move constructor.
| sf::ConfigStore::Scope::~Scope | ( | ) |
Destructor.
| ConfigStore & sf::ConfigStore::Scope::configStore | ( | ) |
Gets the linked config store.
| ConfigStore * sf::ConfigStore::Scope::operator-> | ( | ) |
Allows access to temporary settings having a group on the stack.
| QSettings & sf::ConfigStore::Scope::settings | ( | ) |
Gets the settings instance with the section/group set.