Inheritance diagram for CachedFile:

Public Member Functions | |
| CachedFile (CachedFileBuffer *buffer) | |
| virtual int | closeFile () |
| virtual int | createTemporaryFile (const char *) |
| virtual u_long | getFileSize () |
| virtual FileHandle | getHandle () |
| virtual int | openFile (string const &file, u_long opt) |
| virtual int | openFile (const char *, u_long) |
| virtual int | operator= (CachedFile) |
| virtual int | readFromFile (char *, u_long, u_long *) |
| virtual int | setFilePointer (u_long) |
| virtual int | setHandle (FileHandle) |
| virtual int | write (const char *buffer, u_long len, u_long *nbw) |
| virtual int | writeToFile (const char *, u_long, u_long *) |
Protected Attributes | |
| CachedFileBuffer * | buffer |
| u_long | fseek |
|
|
Costructor of the class. |
|
|
Close an open file handle. Reimplemented from File. |
|
|
A CachedFile can't be temporary. Create a temporary file.
Reimplemented from File. |
|
|
Returns the file size in bytes. Returns -1 on errors. Reimplemented from File. |
|
|
Returns the file handle. Reimplemented from File. |
|
||||||||||||
|
Reimplemented from File. |
|
||||||||||||
|
A CachedFile can't be opened directly, use a factory instead. If the function have success the return value is nonzero.
Reimplemented from File. |
|
|
define the operator =.
|
|
||||||||||||||||
|
Read data from a file to a buffer. Return 1 on errors. Return 0 on success.
Reimplemented from File. |
|
|
Change the position of the pointer to the file.
Reimplemented from File. |
|
|
Set the file handle. Return a non null-value on errors.
Reimplemented from File. |
|
||||||||||||||||
|
Inherithed from Stream. Reimplemented from File. |
|
||||||||||||||||
|
Write data to a file is not supported by a CachedFile, return immediately -1. Inherithed by File. buffer is the pointer to the data to write buffersize is the number of byte to write nbw is a pointer to an unsigned long that receive the number of the bytes written correctly.
Reimplemented from File. |
|
|
|
|
|
|
1.3.9.1