MercuryFileObjectPacked Class Reference

[internal] File object that accesses packed files in the Packages/ folder More...

#include <MercuryFiles.h>

Inheritance diagram for MercuryFileObjectPacked:

Inheritance graph
[legend]
Collaboration diagram for MercuryFileObjectPacked:

Collaboration graph
[legend]
List of all members.

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

MercuryFilem_base
unsigned long m_offset
unsigned long m_size
unsigned long m_location

Detailed Description

[internal] File object that accesses packed files in the Packages/ folder

Definition at line 78 of file MercuryFiles.h.


Constructor & Destructor Documentation

MercuryFileObjectPacked::~MercuryFileObjectPacked (  )  [virtual]

Definition at line 407 of file MercuryFiles.cpp.


Member Function Documentation

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]

Close the file.

Implements MercuryFile.

Definition at line 490 of file MercuryFiles.cpp.

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.


Member Data Documentation

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.


The documentation for this class was generated from the following files:
Hosted by SourceForge.net Logo