Kodi Documentation 23.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
CScopedTestDatabase< DATABASE > Class Template Reference

Points a database slot of the advanced settings, which Open() connects to, at an empty test database for the life of the guard, so code that opens the library itself can be tested. More...

#include <DatabaseTestUtils.h>

Public Member Functions

 CScopedTestDatabase (DatabaseSettings CAdvancedSettings::*slot, const std::string &baseName)
 
 ~CScopedTestDatabase ()
 
 CScopedTestDatabase (const CScopedTestDatabase &)=delete
 
CScopedTestDatabase & operator= (const CScopedTestDatabase &)=delete
 
DATABASE & Get ()
 

Detailed Description

template<typename DATABASE>
class CScopedTestDatabase< DATABASE >

Points a database slot of the advanced settings, which Open() connects to, at an empty test database for the life of the guard, so code that opens the library itself can be tested.

Constructor & Destructor Documentation

◆ CScopedTestDatabase() [1/2]

template<typename DATABASE >
CScopedTestDatabase< DATABASE >::CScopedTestDatabase ( DatabaseSettings CAdvancedSettings::* slot,
const std::string & baseName )
inline

◆ ~CScopedTestDatabase()

template<typename DATABASE >
CScopedTestDatabase< DATABASE >::~CScopedTestDatabase ( )
inline

◆ CScopedTestDatabase() [2/2]

template<typename DATABASE >
CScopedTestDatabase< DATABASE >::CScopedTestDatabase ( const CScopedTestDatabase< DATABASE > & )
delete

Member Function Documentation

◆ Get()

template<typename DATABASE >
DATABASE & CScopedTestDatabase< DATABASE >::Get ( )
inline

◆ operator=()

template<typename DATABASE >
CScopedTestDatabase & CScopedTestDatabase< DATABASE >::operator= ( const CScopedTestDatabase< DATABASE > & )
delete

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