CompressedReader Class Reference

File reader for generic compression file formats. Current formats: ZIP, 7Z. More...

#include <modreader.h>

+ Inheritance diagram for CompressedReader:

Public Member Functions

 CompressedReader (const QString &path)
 Construct a new reader to manage the compressed file.
 
QStringList getAllMaps () override
 Get a list of the maps that this compressed file contains.
 
bool isIwad () override
 returns whether or not this is a IWAD. It will always be false.
 
bool load () override
 loads the compressed file set in the constructor.
 

Protected Member Functions

QStringList getAllMapsRootDir ()
 

Protected Attributes

DPtr< CompressedReaderd
 

Additional Inherited Members

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

Detailed Description

File reader for generic compression file formats. Current formats: ZIP, 7Z.

Definition at line 107 of file modreader.h.

Constructor & Destructor Documentation

CompressedReader::CompressedReader ( const QString &  path)

Construct a new reader to manage the compressed file.

Parameters
pathabsolute path to the compressed file.

Member Function Documentation

QStringList CompressedReader::getAllMaps ( )
overridevirtual

Get a list of the maps that this compressed file contains.

Returns
QStringList list of maps.

Implements ModReader.

Reimplemented in PkReader.

Definition at line 216 of file modreader.cpp.

bool CompressedReader::isIwad ( )
inlineoverridevirtual

returns whether or not this is a IWAD. It will always be false.

Implements ModReader.

Definition at line 126 of file modreader.h.

bool CompressedReader::load ( )
overridevirtual

loads the compressed file set in the constructor.

Returns
true if everything was successful.

Implements ModReader.

Definition at line 204 of file modreader.cpp.


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