#include <MercuryFiles.h>
Inheritance diagram for MercuryFileObjectPacked:
Public Member Functions | |
virtual | ~MercuryFileObjectPacked () |
virtual bool | Init (const MString &fName, FilePermission p, const MString &base, unsigned offset, unsigned size) |
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. | |
Private Attributes | |
MercuryFile * | m_base |
unsigned long | m_offset |
unsigned long | m_size |
unsigned long | m_location |
Definition at line 78 of file MercuryFiles.h.
MercuryFileObjectPacked::~MercuryFileObjectPacked | ( | ) | [virtual] |
Definition at line 407 of file MercuryFiles.cpp.
bool MercuryFileObjectPacked::Init | ( | const MString & | fName, | |
FilePermission | p, | |||
const MString & | base, | |||
unsigned | offset, | |||
unsigned | size | |||
) | [virtual] |
Definition at line 412 of file MercuryFiles.cpp.
bool MercuryFileObjectPacked::Seek | ( | unsigned long | position | ) | [virtual] |
Set the current seek position.
Implements MercuryFile.
Definition at line 433 of file MercuryFiles.cpp.
void MercuryFileObjectPacked::Close | ( | ) | [virtual] |
unsigned long MercuryFileObjectPacked::Tell | ( | ) | [virtual] |
Return the current seek position.
Implements MercuryFile.
Definition at line 441 of file MercuryFiles.cpp.
unsigned long MercuryFileObjectPacked::Length | ( | ) | [virtual] |
Return the length of the file (in bytes).
Implements MercuryFile.
Definition at line 446 of file MercuryFiles.cpp.
bool MercuryFileObjectPacked::Write | ( | void * | data, | |
unsigned long | length | |||
) | [virtual] |
Writes length bytes, returns true if it wrote successfully.
Implements MercuryFile.
Definition at line 451 of file MercuryFiles.cpp.
unsigned long MercuryFileObjectPacked::Read | ( | void * | data, | |
unsigned long | length | |||
) | [virtual] |
Returns the number of bytes read.
Implements MercuryFile.
Definition at line 463 of file MercuryFiles.cpp.
bool MercuryFileObjectPacked::Check | ( | ) | [virtual] |
Returns non-zero value if there's an error.
Implements MercuryFile.
Definition at line 480 of file MercuryFiles.cpp.
bool MercuryFileObjectPacked::Eof | ( | ) | [virtual] |
Return true if end of file.
Implements MercuryFile.
Definition at line 485 of file MercuryFiles.cpp.
MercuryFile* MercuryFileObjectPacked::m_base [private] |
Definition at line 92 of file MercuryFiles.h.
unsigned long MercuryFileObjectPacked::m_offset [private] |
Definition at line 93 of file MercuryFiles.h.
unsigned long MercuryFileObjectPacked::m_size [private] |
Definition at line 94 of file MercuryFiles.h.
unsigned long MercuryFileObjectPacked::m_location [private] |
Definition at line 95 of file MercuryFiles.h.