Scanframe Modular Application 0.1.0
Loading...
Searching...
No Matches
sf::ConfigStore::Scope Class Reference

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.
 
Scopeoperator= (Scope &&cs) noexcept
 Move constructor.
 
 ~Scope ()
 Destructor.
 
ConfigStoreoperator-> ()
 Allows access to temporary settings having a group on the stack.
 
QSettings & settings ()
 Gets the settings instance with the section/group set.
 
ConfigStoreconfigStore ()
 Gets the linked config store.
 

Detailed Description

Begins and ends a scope of settings for a section. When create it calls beginGroup(...) and when out of scop it calls endGroup().

Constructor & Destructor Documentation

◆ Scope() [1/3]

sf::ConfigStore::Scope::Scope ( ConfigStore cs,
QAnyStringView  section 
)
explicit

Constructor passing a section of the scope.

Parameters
csConfig store it operates on.
sectionWhen empty '{}' the default section is used.
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.

◆ Scope() [2/3]

sf::ConfigStore::Scope::Scope ( const Scope )
delete

Forbidden copy constructor.

◆ Scope() [3/3]

sf::ConfigStore::Scope::Scope ( Scope &&  cs)
noexcept

Move constructor.

◆ ~Scope()

sf::ConfigStore::Scope::~Scope ( )

Destructor.

Member Function Documentation

◆ configStore()

ConfigStore & sf::ConfigStore::Scope::configStore ( )

Gets the linked config store.

◆ operator->()

ConfigStore * sf::ConfigStore::Scope::operator-> ( )

Allows access to temporary settings having a group on the stack.

◆ operator=()

Scope & sf::ConfigStore::Scope::operator= ( Scope &&  cs)
noexcept

Move constructor.

◆ settings()

QSettings & sf::ConfigStore::Scope::settings ( )

Gets the settings instance with the section/group set.


The documentation for this class was generated from the following file: