TrinityCore
Loading...
Searching...
No Matches
MPQFile Class Reference

#include <mpq_libmpq.h>

Public Member Functions

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

Private Member Functions

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

Private Attributes

bool eof
 
char * buffer
 
libmpq__off_t pointer
 
libmpq__off_t size
 

Detailed Description

Definition at line 72 of file mpq_libmpq.h.

Constructor & Destructor Documentation

◆ MPQFile() [1/2]

MPQFile::MPQFile ( MPQFile const &  )
privatedelete

◆ MPQFile() [2/2]

MPQFile::MPQFile ( char const *  filename)

Definition at line 64 of file mpq_libmpq.cpp.

◆ ~MPQFile()

MPQFile::~MPQFile ( )
inline

Definition at line 85 of file mpq_libmpq.h.

+ Here is the call graph for this function:

Member Function Documentation

◆ close()

void MPQFile::close ( )

Definition at line 129 of file mpq_libmpq.cpp.

+ Here is the caller graph for this function:

◆ getBuffer()

char * MPQFile::getBuffer ( )
inline

Definition at line 89 of file mpq_libmpq.h.

+ Here is the caller graph for this function:

◆ getPointer()

char * MPQFile::getPointer ( )
inline

Definition at line 90 of file mpq_libmpq.h.

+ Here is the caller graph for this function:

◆ getPos()

size_t MPQFile::getPos ( )
inline

Definition at line 88 of file mpq_libmpq.h.

+ Here is the caller graph for this function:

◆ getSize()

size_t MPQFile::getSize ( )
inline

Definition at line 87 of file mpq_libmpq.h.

+ Here is the caller graph for this function:

◆ isEof()

bool MPQFile::isEof ( )
inline

Definition at line 91 of file mpq_libmpq.h.

+ Here is the caller graph for this function:

◆ operator=()

void MPQFile::operator= ( MPQFile const &  )
privatedelete

◆ read()

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

Definition at line 100 of file mpq_libmpq.cpp.

+ Here is the caller graph for this function:

◆ seek()

void MPQFile::seek ( int  offset)

Definition at line 117 of file mpq_libmpq.cpp.

+ Here is the caller graph for this function:

◆ seekRelative()

void MPQFile::seekRelative ( int  offset)

Definition at line 123 of file mpq_libmpq.cpp.

+ Here is the caller graph for this function:

Member Data Documentation

◆ buffer

char* MPQFile::buffer
private

Definition at line 76 of file mpq_libmpq.h.

◆ eof

bool MPQFile::eof
private

Definition at line 75 of file mpq_libmpq.h.

◆ pointer

libmpq__off_t MPQFile::pointer
private

Definition at line 77 of file mpq_libmpq.h.

◆ size

libmpq__off_t MPQFile::size
private

Definition at line 77 of file mpq_libmpq.h.


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