#include <BerkeleyDB_Example.h>
Inheritance diagram for mdfs::MDFSDB:
Public Types | |
enum | MOptions { DEFAULT = 0, URL, LOCAL } |
Public Member Functions | |
MDFSDB () | |
~MDFSDB () | |
virtual bool | UpdateFile (const MFile &f, int options) |
Will add if not exist, update if exist, and add all the parent directories to the DB. The update process does not compare old values, just merely replace the old by the new ones. See base class for additional info. | |
virtual bool | GetFile (MFile &f) |
See base class for info. | |
virtual void | GetList (MQuery &q, MFileList &list) |
void | GetDirContent (MQuery &q, MFileList &list) |
MDFSDB () | |
~MDFSDB () | |
virtual bool | UpdateFile (const MFile &f, int options=0) |
void | AddFile (const MFile &f) |
Add with no check. | |
virtual bool | GetFile (MFile &f, int options=0) |
See base class for info. | |
bool | GetEntry (const MFile &f, MEntry *&e, int options=0) |
virtual void | GetList (MQuery &q, MFileList &list) |
void | GetDirContent (MQuery &q, MFileList &list) |
See base class for info. | |
int | RemoveLocalOrphan (MStringList *shares=NULL) |
int | RemoveRemoteFiles () |
Use Unmarshall and UpdateFile (Marshall) to load/save from/to a file.
|
|
|
|
|
|
|
|
|
|
|
Add with no check.
|
|
See base class for info.
|
|
|
|
|
|
See base class for info.
Implements mdfs::MDFSDBBase. |
|
See base class for info.
|
|
Implements mdfs::MDFSDBBase. |
|
Implements mdfs::MDFSDBBase. |
|
remove any local entry with a missing corresponding file remove any local entry with a URL not in the shares (shares can be NULL) return the number of entries removed |
|
remove any non local entry return the number of entries removed |
|
Add if not exist, update if exist. The update process does not compare old values, just simply replace the old by the new ones. See base class for additional info. Implements mdfs::MDFSDBBase. |
|
Will add if not exist, update if exist, and add all the parent directories to the DB. The update process does not compare old values, just merely replace the old by the new ones. See base class for additional info.
Implements mdfs::MDFSDBBase. |