add FilenameDB::DelFile

This commit is contained in:
Glenn Maynard
2003-12-16 07:22:43 +00:00
parent 52c8cb3e3c
commit b2f375f4ec
2 changed files with 66 additions and 21 deletions
+2 -1
View File
@@ -70,7 +70,7 @@ struct FileSet
class FilenameDB
{
protected:
FileSet &GetFileSet( CString dir );
FileSet *GetFileSet( CString dir, bool create=true );
/* Directories we have cached: */
map<CString, FileSet *> dirs;
@@ -92,6 +92,7 @@ public:
virtual FilenameDB::~FilenameDB() { FlushDirCache(); }
void AddFile( const CString &sPath, int size, int hash, void *priv=NULL );
void DelFile( const CString &sPath );
File *GetFile( const CString &path );
/* This handles at most two * wildcards. If we need anything more complicated,