Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
XFILE::CDirectoryCache Class Reference

#include <DirectoryCache.h>

Public Member Functions

 CDirectoryCache (void)
 
virtual ~CDirectoryCache (void)
 
bool GetDirectory (const std::string &strPath, CFileItemList &items, bool retrieveAll=false)
 
void SetDirectory (const std::string &strPath, const CFileItemList &items, DIR_CACHE_TYPE cacheType)
 
void ClearDirectory (const std::string &strPath)
 
void ClearFile (const std::string &strFile)
 
void ClearSubPaths (const std::string &strPath)
 
void Clear ()
 
void AddFile (const std::string &strFile)
 
bool FileExists (const std::string &strPath, bool &bInCache)
 

Protected Member Functions

void InitCache (const std::set< std::string > &dirs)
 
void ClearCache (std::set< std::string > &dirs)
 
void CheckIfFull ()
 

Protected Attributes

std::map< std::string, CDir > m_cache
 
CCriticalSection m_cs
 
unsigned int m_accessCounter
 

Constructor & Destructor Documentation

◆ CDirectoryCache()

CDirectoryCache::CDirectoryCache ( void )

◆ ~CDirectoryCache()

CDirectoryCache::~CDirectoryCache ( void )
virtualdefault

Member Function Documentation

◆ AddFile()

void CDirectoryCache::AddFile ( const std::string & strFile)

◆ CheckIfFull()

void CDirectoryCache::CheckIfFull ( )
protected

◆ Clear()

void CDirectoryCache::Clear ( )

◆ ClearCache()

void CDirectoryCache::ClearCache ( std::set< std::string > & dirs)
protected

◆ ClearDirectory()

void CDirectoryCache::ClearDirectory ( const std::string & strPath)

◆ ClearFile()

void CDirectoryCache::ClearFile ( const std::string & strFile)

◆ ClearSubPaths()

void CDirectoryCache::ClearSubPaths ( const std::string & strPath)

◆ FileExists()

bool CDirectoryCache::FileExists ( const std::string & strPath,
bool & bInCache )

◆ GetDirectory()

bool CDirectoryCache::GetDirectory ( const std::string & strPath,
CFileItemList & items,
bool retrieveAll = false )

◆ InitCache()

void CDirectoryCache::InitCache ( const std::set< std::string > & dirs)
protected

◆ SetDirectory()

void CDirectoryCache::SetDirectory ( const std::string & strPath,
const CFileItemList & items,
DIR_CACHE_TYPE cacheType )

Member Data Documentation

◆ m_accessCounter

unsigned int XFILE::CDirectoryCache::m_accessCounter
protected

◆ m_cache

std::map<std::string, CDir> XFILE::CDirectoryCache::m_cache
protected

◆ m_cs

CCriticalSection XFILE::CDirectoryCache::m_cs
mutableprotected

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