WadReader Class Reference

File reader for the WAD format. More...

#include <modreader.h>

+ Inheritance diagram for WadReader:

Public Member Functions

 WadReader (const QString &path)
 Construct a new WAD reader to manage a WAD file.
 
QStringList getAllMaps () override
 Get a list of the maps that this WAD contains.
 
QList< DirectoryEntrygetDirectory ()
 Get all the directory of the WAD.
 
bool isIwad () override
 returns whether or not this is a IWAD.
 
bool load () override
 loads the WAD set in the constructor.
 

Additional Inherited Members

- Static Public Member Functions inherited from ModReader
static QSharedPointer< ModReadercreate (const QString &path)
 

Detailed Description

File reader for the WAD format.

Definition at line 58 of file modreader.h.

Constructor & Destructor Documentation

WadReader::WadReader ( const QString &  path)

Construct a new WAD reader to manage a WAD file.

Parameters
pathabsolute path to WAD file.

Member Function Documentation

QStringList WadReader::getAllMaps ( )
overridevirtual

Get a list of the maps that this WAD contains.

Returns
QStringList list of maps.

Implements ModReader.

Definition at line 113 of file modreader.cpp.

QList< DirectoryEntry > WadReader::getDirectory ( )

Get all the directory of the WAD.

Definition at line 108 of file modreader.cpp.

bool WadReader::isIwad ( )
overridevirtual

returns whether or not this is a IWAD.

Implements ModReader.

Definition at line 103 of file modreader.cpp.

bool WadReader::load ( )
overridevirtual

loads the WAD set in the constructor.

Returns
true if everything was successful.

Implements ModReader.

Definition at line 74 of file modreader.cpp.


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