A cache for file attributes and resolved links.
More...
#include <fileInfoCache.h>
A cache for file attributes and resolved links.
Definition at line 38 of file fileInfoCache.h.
virtual FileCache::~FileCache |
( |
| ) |
|
|
inlinevirtual |
FileCache::FileCache |
( |
const FileCache & |
orig | ) |
|
|
private |
Prevent copy-construction.
const deque< string > * FileCache::getReadLink |
( |
const char * |
pcPath | ) |
const |
const deque< string > * FileCache::getStat |
( |
const char * |
pcPath | ) |
const |
void FileCache::invalidate |
( |
const char * |
pcPath | ) |
|
Renders the cashed data for the given file as invalid.
- Parameters
-
pcPath | the pathname to the file. |
Definition at line 183 of file fileinfoCache.cpp.
bool FileCache::isValid |
( |
const Entry & |
entry | ) |
const |
|
private |
Tests if the given cache entry is valid.
- Parameters
-
Definition at line 195 of file fileinfoCache.cpp.
void FileCache::putReadLink |
( |
const char * |
pcPath, |
|
|
const deque< string > & |
readLinkOutput |
|
) |
| |
Caches the output of adbnc_readlink().
- Parameters
-
pcPath | the pathname of the file thats resolved link to cache. |
readLinkOutput | a reference to resolved link name. |
Definition at line 134 of file fileinfoCache.cpp.
void FileCache::putStat |
( |
const char * |
pcPath, |
|
|
const deque< string > & |
statOutput |
|
) |
| |
Caches the output of doStat().
- Parameters
-
pcPath | the pathname of the file thats data to cache. |
statOutput | a reference to the data to cache. |
Definition at line 111 of file fileinfoCache.cpp.
map<string, Entry> FileCache::m_Entries |
|
private |
The documentation for this class was generated from the following files: