FreeNOS
|
Cached in-memory file. More...
#include <FileCache.h>
Public Member Functions | |
FileCache (File *f, const char *n, FileCache *p) | |
Constructor function. More... | |
Data Fields | |
File * | file |
File pointer. More... | |
String | name |
Our name. More... | |
HashTable< String, FileCache * > | entries |
Contains childs. More... | |
FileCache * | parent |
Parent. More... | |
Cached in-memory file.
Definition at line 35 of file FileCache.h.
Constructor function.
f | File to insert into the cache. |
n | Entry name of the File in the parent, if any. |
p | Our parent. ZERO if we have no parent. |
Definition at line 44 of file FileCache.h.
References entries, HashTable< K, V >::insert(), and name.
Contains childs.
Definition at line 62 of file FileCache.h.
Referenced by FileSystemServer::clearFileCache(), FileCache(), FileSystemServer::findFileCache(), FileSystemServer::lookupFile(), FileSystemServer::removeFileFromCache(), and FileSystemServer::unregisterFile().
File* FileCache::file |
File pointer.
Definition at line 56 of file FileCache.h.
Referenced by FileSystemServer::clearFileCache(), FileSystemServer::getParentDirectory(), FileSystemServer::lookupFile(), FileSystemServer::processRequest(), and FileSystemServer::removeFileFromCache().
String FileCache::name |
Our name.
Definition at line 59 of file FileCache.h.
Referenced by FileSystemServer::clearFileCache(), FileCache(), and FileSystemServer::removeFileFromCache().
FileCache* FileCache::parent |
Parent.
Definition at line 65 of file FileCache.h.
Referenced by FileSystemServer::clearFileCache().