Kodi Documentation 23.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
CScopedSetting Class Reference

Sets a setting for the life of the guard, then puts back the value it had. More...

#include <TestUtils.h>

Public Member Functions

 CScopedSetting (const std::string &id)
 Only puts the value back, for a test that sets the setting itself.
 
 CScopedSetting (const std::string &id, bool value)
 
 CScopedSetting (const std::string &id, const std::string &value)
 
 CScopedSetting (const std::string &id, const char *value)
 
 ~CScopedSetting ()
 
 CScopedSetting (const CScopedSetting &)=delete
 
CScopedSetting & operator= (const CScopedSetting &)=delete
 

Detailed Description

Sets a setting for the life of the guard, then puts back the value it had.

Constructor & Destructor Documentation

◆ CScopedSetting() [1/5]

CScopedSetting::CScopedSetting ( const std::string & id)
explicit

Only puts the value back, for a test that sets the setting itself.

◆ CScopedSetting() [2/5]

CScopedSetting::CScopedSetting ( const std::string & id,
bool value )

◆ CScopedSetting() [3/5]

CScopedSetting::CScopedSetting ( const std::string & id,
const std::string & value )

◆ CScopedSetting() [4/5]

CScopedSetting::CScopedSetting ( const std::string & id,
const char * value )
inline

◆ ~CScopedSetting()

CScopedSetting::~CScopedSetting ( )

◆ CScopedSetting() [5/5]

CScopedSetting::CScopedSetting ( const CScopedSetting & )
delete

Member Function Documentation

◆ operator=()

CScopedSetting & CScopedSetting::operator= ( const CScopedSetting & )
delete

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