Logo Search packages:      
Sourcecode: qt4-x11 version File versions

Directory Class Reference

#include <Directory.h>

Inheritance diagram for Directory:

FSDirectory RAMDirectory

List of all members.


Detailed Description

A Directory is a flat list of files. Files may be written once, when they are created. Once a file is created it may only be opened for read, or deleted. Random access is permitted both when reading and writing.

Direct i/o is not used directly, but rather all i/o is through this API. This permits things such as:

Definition at line 37 of file Directory.h.


Public Member Functions

virtual void close ()=0
virtual IndexOutputcreateOutput (const char *name)=0
virtual bool deleteFile (const char *name, const bool throwError=true)
virtual bool fileExists (const char *name) const =0
virtual int64_t fileLength (const char *name) const =0
virtual void fileList (vector< string > *names) const =0
virtual int64_t fileModified (const char *name) const =0
virtual const char * getDirectoryType () const =0
char ** list () const
virtual LuceneLock * makeLock (const char *name)=0
virtual IndexInputopenInput (const char *name, int32_t bufferSize)
virtual IndexInputopenInput (const char *name)=0
virtual void renameFile (const char *from, const char *to)=0
virtual TCHAR * toString () const =0
virtual void touchFile (const char *name)=0
 Set the modified time of an existing file to now. */.

Protected Member Functions

virtual bool doDeleteFile (const char *name)=0

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

Generated by  Doxygen 1.6.0   Back to index