#include <MercuryFiles.h>
Inheritance diagram for MercuryFileObjectDirect:


| Public Member Functions | |
| MercuryFileObjectDirect () | |
| virtual | ~MercuryFileObjectDirect () | 
| virtual bool | Init (const MString &fName, FilePermission p) | 
| [internal] Initialize the file | |
| virtual bool | Seek (unsigned long position) | 
| Set the current seek position. | |
| virtual void | Close () | 
| Close the file. | |
| virtual unsigned long | Tell () | 
| Return the current seek position. | |
| virtual unsigned long | Length () | 
| Return the length of the file (in bytes). | |
| virtual bool | Write (void *data, unsigned long length) | 
| Writes length bytes, returns true if it wrote successfully. | |
| virtual unsigned long | Read (void *data, unsigned long length) | 
| Returns the number of bytes read. | |
| virtual bool | Check () | 
| Returns non-zero value if there's an error. | |
| virtual bool | Eof () | 
| Return true if end of file. | |
| virtual unsigned long | GetModTime () | 
| Return the last time the file was modified, if 0, this means unknown. | |
| Private Attributes | |
| FILE * | m_fF | 
| unsigned long | length | 
Definition at line 56 of file MercuryFiles.h.
| MercuryFileObjectDirect::MercuryFileObjectDirect | ( | ) | 
Definition at line 203 of file MercuryFiles.cpp.
| MercuryFileObjectDirect::~MercuryFileObjectDirect | ( | ) |  [virtual] | 
Definition at line 209 of file MercuryFiles.cpp.
| bool MercuryFileObjectDirect::Init | ( | const MString & | sPath, | |
| FilePermission | p | |||
| ) |  [virtual] | 
[internal] Initialize the file
Reimplemented from MercuryFile.
Definition at line 228 of file MercuryFiles.cpp.
| bool MercuryFileObjectDirect::Seek | ( | unsigned long | position | ) |  [virtual] | 
Set the current seek position.
Implements MercuryFile.
Definition at line 256 of file MercuryFiles.cpp.
| void MercuryFileObjectDirect::Close | ( | ) |  [virtual] | 
| unsigned long MercuryFileObjectDirect::Tell | ( | ) |  [virtual] | 
Return the current seek position.
Implements MercuryFile.
Definition at line 263 of file MercuryFiles.cpp.
| unsigned long MercuryFileObjectDirect::Length | ( | ) |  [virtual] | 
Return the length of the file (in bytes).
Implements MercuryFile.
Definition at line 270 of file MercuryFiles.cpp.
| bool MercuryFileObjectDirect::Write | ( | void * | data, | |
| unsigned long | length | |||
| ) |  [virtual] | 
Writes length bytes, returns true if it wrote successfully.
Implements MercuryFile.
Definition at line 281 of file MercuryFiles.cpp.
| unsigned long MercuryFileObjectDirect::Read | ( | void * | data, | |
| unsigned long | length | |||
| ) |  [virtual] | 
Returns the number of bytes read.
Implements MercuryFile.
Definition at line 288 of file MercuryFiles.cpp.
| bool MercuryFileObjectDirect::Check | ( | ) |  [virtual] | 
Returns non-zero value if there's an error.
Implements MercuryFile.
Definition at line 295 of file MercuryFiles.cpp.
| bool MercuryFileObjectDirect::Eof | ( | ) |  [virtual] | 
Return true if end of file.
Implements MercuryFile.
Definition at line 302 of file MercuryFiles.cpp.
| unsigned long MercuryFileObjectDirect::GetModTime | ( | ) |  [virtual] | 
Return the last time the file was modified, if 0, this means unknown.
Reimplemented from MercuryFile.
Definition at line 309 of file MercuryFiles.cpp.
| FILE* MercuryFileObjectDirect::m_fF  [private] | 
Definition at line 73 of file MercuryFiles.h.
| unsigned long MercuryFileObjectDirect::length  [private] | 
Definition at line 74 of file MercuryFiles.h.