Worldstone
 All Classes Files Functions Variables Enumerations Enumerator Macros Pages
WorldStone::MpqArchive Class Reference

A wrapper to manage MPQ archives. More...

#include <MpqArchive.h>

Inheritance diagram for WorldStone::MpqArchive:
WorldStone::Archive WorldStone::IOBase

Public Member Functions

 MpqArchive (const char *MpqFileName, const char *listFilePath=nullptr)
 
 MpqArchive (MpqArchive &&toMove)
 
MpqArchiveoperator= (MpqArchive &&toMove)
 
bool exists (const Path &filePath) override
 
StreamPtr open (const Path &filePath) override
 
HANDLE getInternalHandle ()
 
void addListFile (const char *listFilePAth)
 
std::vector< Path > findFiles (const Path &searchMask="*")
 
- Public Member Functions inherited from WorldStone::Archive
 Archive (const Archive &)=delete
 
Archiveoperator= (const Archive &)=delete
 
virtual bool isThreadSafe ()
 
- Public Member Functions inherited from WorldStone::IOBase
 operator bool () const
 
bool operator! () const
 
bool good () const
 
bool eof () const
 
bool fail () const
 
bool bad () const
 

Additional Inherited Members

- Public Types inherited from WorldStone::IOBase
using Path = std::string
 
using iostate = int
 
- Protected Member Functions inherited from WorldStone::IOBase
void setstate (iostate state)
 
- Protected Attributes inherited from WorldStone::IOBase
iostate _state = goodbit
 
- Static Protected Attributes inherited from WorldStone::IOBase
static constexpr iostate goodbit = 0x0
 
static constexpr iostate eofbit = 0x1
 
static constexpr iostate failbit = 0x2
 
static constexpr iostate badbit = 0x4
 

Detailed Description

A wrapper to manage MPQ archives.

Definition at line 17 of file MpqArchive.h.


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