Project SkyFire Core
SkyFire 5.4.8 server core API documentation
Loading...
Searching...
No Matches
MPQFile Class Reference

#include <mpqfile.h>

Public Member Functions

void close ()
char * getBuffer ()
char * getPointer ()
size_t getPos ()
size_t getSize ()
bool isEof ()
 MPQFile (HANDLE mpq, const char *filename, bool warnNoExist=true)
size_t read (void *dest, size_t bytes)
void seek (int offset)
void seekRelative (int offset)
 ~MPQFile ()

Private Member Functions

 MPQFile (const MPQFile &f)
void operator= (const MPQFile &f)

Private Attributes

char * buffer
bool eof
size_t pointer
size_t size

Detailed Description

Definition at line 50 of file mpqfile.h.

Constructor & Destructor Documentation

◆ MPQFile() [1/2]

MPQFile::MPQFile ( const MPQFile & f)
private

References MPQFile().

Referenced by MPQFile(), and operator=().

◆ MPQFile() [2/2]

MPQFile::MPQFile ( HANDLE mpq,
const char * filename,
bool warnNoExist = true )

Definition at line 11 of file mpqfile.cpp.

References buffer, eof, pointer, read(), and size.

◆ ~MPQFile()

MPQFile::~MPQFile ( )
inline

Definition at line 63 of file mpqfile.h.

References close().

Member Function Documentation

◆ close()

void MPQFile::close ( )

Definition at line 87 of file mpqfile.cpp.

References buffer, and eof.

Referenced by Model::open(), WMOGroup::open(), WMORoot::open(), and ~MPQFile().

◆ getBuffer()

char * MPQFile::getBuffer ( )
inline

Definition at line 67 of file mpqfile.h.

References buffer.

Referenced by Model::open().

◆ getPointer()

char * MPQFile::getPointer ( )
inline

Definition at line 68 of file mpqfile.h.

References buffer, and pointer.

◆ getPos()

size_t MPQFile::getPos ( )
inline

Definition at line 66 of file mpqfile.h.

References pointer.

Referenced by WMOGroup::open(), and WMORoot::open().

◆ getSize()

size_t MPQFile::getSize ( )
inline

Definition at line 65 of file mpqfile.h.

References size.

◆ isEof()

bool MPQFile::isEof ( )
inline

Definition at line 69 of file mpqfile.h.

References eof.

Referenced by Model::open(), WMOGroup::open(), and WMORoot::open().

◆ operator=()

void MPQFile::operator= ( const MPQFile & f)
private

References MPQFile().

◆ read()

size_t MPQFile::read ( void * dest,
size_t bytes )

◆ seek()

void MPQFile::seek ( int offset)

Definition at line 75 of file mpqfile.cpp.

References eof, pointer, and size.

Referenced by Model::open(), WMOGroup::open(), and WMORoot::open().

◆ seekRelative()

void MPQFile::seekRelative ( int offset)

Definition at line 81 of file mpqfile.cpp.

References eof, pointer, and size.

Referenced by Model::open().

Member Data Documentation

◆ buffer

char* MPQFile::buffer
private

Definition at line 54 of file mpqfile.h.

Referenced by close(), getBuffer(), getPointer(), MPQFile(), and read().

◆ eof

bool MPQFile::eof
private

Definition at line 53 of file mpqfile.h.

Referenced by close(), isEof(), MPQFile(), read(), seek(), and seekRelative().

◆ pointer

size_t MPQFile::pointer
private

Definition at line 55 of file mpqfile.h.

Referenced by getPointer(), getPos(), MPQFile(), read(), seek(), and seekRelative().

◆ size

size_t MPQFile::size
private

Definition at line 55 of file mpqfile.h.

Referenced by getSize(), MPQFile(), read(), seek(), and seekRelative().


The documentation for this class was generated from the following files: