MercuryFileObjectZipped Class Reference

[internal] File object that accesses zipped files in the root or Packed/ folder More...

#include <MercuryFiles.h>

Inheritance diagram for MercuryFileObjectZipped:

Inheritance graph
[legend]
Collaboration diagram for MercuryFileObjectZipped:

Collaboration graph
[legend]
List of all members.

Public Member Functions

virtual ~MercuryFileObjectZipped ()
virtual bool Init (const MString &fName, FilePermission p, const MString &base, unsigned offset, unsigned size, unsigned packedsize, unsigned decompID)
virtual bool MemFileInit (const MString &sName, const char *pData, unsigned long iSize)
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

unsigned long m_size
unsigned long m_location
bool m_bIsDummy
char * m_Buffer

Detailed Description

[internal] File object that accesses zipped files in the root or Packed/ folder

Definition at line 99 of file MercuryFiles.h.


Constructor & Destructor Documentation

MercuryFileObjectZipped::~MercuryFileObjectZipped (  )  [virtual]

Definition at line 741 of file MercuryFiles.cpp.


Member Function Documentation

bool MercuryFileObjectZipped::Init ( const MString fName,
FilePermission  p,
const MString base,
unsigned  offset,
unsigned  size,
unsigned  packedsize,
unsigned  decompID 
) [virtual]

Definition at line 746 of file MercuryFiles.cpp.

bool MercuryFileObjectZipped::MemFileInit ( const MString sName,
const char *  pData,
unsigned long  iSize 
) [virtual]

Definition at line 815 of file MercuryFiles.cpp.

bool MercuryFileObjectZipped::Seek ( unsigned long  position  )  [virtual]

Set the current seek position.

Implements MercuryFile.

Definition at line 827 of file MercuryFiles.cpp.

void MercuryFileObjectZipped::Close (  )  [virtual]

Close the file.

Implements MercuryFile.

Definition at line 877 of file MercuryFiles.cpp.

unsigned long MercuryFileObjectZipped::Tell (  )  [virtual]

Return the current seek position.

Implements MercuryFile.

Definition at line 835 of file MercuryFiles.cpp.

unsigned long MercuryFileObjectZipped::Length (  )  [virtual]

Return the length of the file (in bytes).

Implements MercuryFile.

Definition at line 840 of file MercuryFiles.cpp.

bool MercuryFileObjectZipped::Write ( void *  data,
unsigned long  length 
) [virtual]

Writes length bytes, returns true if it wrote successfully.

Implements MercuryFile.

Definition at line 845 of file MercuryFiles.cpp.

unsigned long MercuryFileObjectZipped::Read ( void *  data,
unsigned long  length 
) [virtual]

Returns the number of bytes read.

Implements MercuryFile.

Definition at line 851 of file MercuryFiles.cpp.

bool MercuryFileObjectZipped::Check (  )  [virtual]

Returns non-zero value if there's an error.

Implements MercuryFile.

Definition at line 864 of file MercuryFiles.cpp.

bool MercuryFileObjectZipped::Eof (  )  [virtual]

Return true if end of file.

Implements MercuryFile.

Definition at line 872 of file MercuryFiles.cpp.


Member Data Documentation

unsigned long MercuryFileObjectZipped::m_size [private]

Definition at line 114 of file MercuryFiles.h.

unsigned long MercuryFileObjectZipped::m_location [private]

Definition at line 115 of file MercuryFiles.h.

bool MercuryFileObjectZipped::m_bIsDummy [private]

Definition at line 117 of file MercuryFiles.h.

char* MercuryFileObjectZipped::m_Buffer [private]

Definition at line 120 of file MercuryFiles.h.


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