Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
RCCResourceLibrary Class Reference

#include <rcc.h>

Collaboration diagram for RCCResourceLibrary:

Public Types

enum  Format {
  Binary , C_Code , Pass1 , Pass2 ,
  Python_Code , Binary , C_Code , Pass1 ,
  Pass2 , Python_Code
}
enum class  CompressionAlgorithm {
  Zlib , Zstd , Best = 99 , None = -1 ,
  Zlib , Zstd , Best = 99 , None = -1
}
enum  Format {
  Binary , C_Code , Pass1 , Pass2 ,
  Python_Code , Binary , C_Code , Pass1 ,
  Pass2 , Python_Code
}
enum class  CompressionAlgorithm {
  Zlib , Zstd , Best = 99 , None = -1 ,
  Zlib , Zstd , Best = 99 , None = -1
}
typedef QHash< QString, QStringResourceDataFileMap
typedef QHash< QString, QStringResourceDataFileMap

Public Member Functions

 RCCResourceLibrary (quint8 formatVersion)
 ~RCCResourceLibrary ()
bool output (QIODevice &outDevice, QIODevice &tempDevice, QIODevice &errorDevice)
bool readFiles (bool listMode, QIODevice &errorDevice)
void setFormat (Format f)
Format format () const
void setInputFiles (const QStringList &files)
QStringList inputFiles () const
QStringList dataFiles () const
ResourceDataFileMap resourceDataFileMap () const
void setVerbose (bool b)
bool verbose () const
void setInitName (const QString &name)
QString initName () const
void setOutputName (const QString &name)
QString outputName () const
void setCompressionAlgorithm (CompressionAlgorithm algo)
CompressionAlgorithm compressionAlgorithm () const
void setCompressLevel (int c)
int compressLevel () const
void setCompressThreshold (int t)
int compressThreshold () const
void setResourceRoot (const QString &root)
QString resourceRoot () const
void setUseNameSpace (bool v)
bool useNameSpace () const
QStringList failedResources () const
int formatVersion () const
void setNoZstd (bool v)
bool noZstd () const
 RCCResourceLibrary (quint8 formatVersion)
 ~RCCResourceLibrary ()
bool output (QIODevice &outDevice, QIODevice &tempDevice, QIODevice &errorDevice)
bool readFiles (bool listMode, QIODevice &errorDevice)
void setFormat (Format f)
Format format () const
void setInputFiles (const QStringList &files)
QStringList inputFiles () const
QStringList dataFiles () const
ResourceDataFileMap resourceDataFileMap () const
void setVerbose (bool b)
bool verbose () const
void setInitName (const QString &name)
QString initName () const
void setOutputName (const QString &name)
QString outputName () const
void setCompressionAlgorithm (CompressionAlgorithm algo)
CompressionAlgorithm compressionAlgorithm () const
void setCompressLevel (int c)
int compressLevel () const
void setCompressThreshold (int t)
int compressThreshold () const
void setResourceRoot (const QString &root)
QString resourceRoot () const
void setUseNameSpace (bool v)
bool useNameSpace () const
QStringList failedResources () const
int formatVersion () const
void setNoZstd (bool v)
bool noZstd () const

Static Public Member Functions

static CompressionAlgorithm parseCompressionAlgorithm (QStringView algo, QString *errorMsg)
static int parseCompressionLevel (CompressionAlgorithm algo, const QString &level, QString *errorMsg)
static CompressionAlgorithm parseCompressionAlgorithm (QStringView algo, QString *errorMsg)
static int parseCompressionLevel (CompressionAlgorithm algo, const QString &level, QString *errorMsg)

Friends

class RCCFileInfo

Detailed Description

Definition at line 23 of file rcc.h.

Member Typedef Documentation

◆ ResourceDataFileMap [1/2]

Definition at line 46 of file rcc.h.

◆ ResourceDataFileMap [2/2]

Definition at line 55 of file rcc_p.h.

Member Enumeration Documentation

◆ CompressionAlgorithm [1/2]

Enumerator
Zlib 
Zstd 
Best 
None 
Zlib 
Zstd 
Best 
None 

Definition at line 58 of file rcc.h.

◆ CompressionAlgorithm [2/2]

Enumerator
Zlib 
Zstd 
Best 
None 
Zlib 
Zstd 
Best 
None 

Definition at line 67 of file rcc_p.h.

◆ Format [1/2]

Enumerator
Binary 
C_Code 
Pass1 
Pass2 
Python_Code 
Binary 
C_Code 
Pass1 
Pass2 
Python_Code 

Definition at line 36 of file rcc.h.

◆ Format [2/2]

Enumerator
Binary 
C_Code 
Pass1 
Pass2 
Python_Code 
Binary 
C_Code 
Pass1 
Pass2 
Python_Code 

Definition at line 45 of file rcc_p.h.

Constructor & Destructor Documentation

◆ RCCResourceLibrary() [1/2]

RCCResourceLibrary::RCCResourceLibrary ( quint8 formatVersion)

Definition at line 437 of file rcc.cpp.

References RCCResourceLibrary(), Best, C_Code, CONSTANT_COMPRESSLEVEL_DEFAULT, CONSTANT_COMPRESSTHRESHOLD_DEFAULT, and CONSTANT_USENAMESPACE.

Referenced by RCCResourceLibrary().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ~RCCResourceLibrary() [1/2]

RCCResourceLibrary::~RCCResourceLibrary ( )

Definition at line 460 of file rcc.cpp.

◆ RCCResourceLibrary() [2/2]

RCCResourceLibrary::RCCResourceLibrary ( quint8 formatVersion)

◆ ~RCCResourceLibrary() [2/2]

RCCResourceLibrary::~RCCResourceLibrary ( )

Member Function Documentation

◆ compressionAlgorithm() [1/2]

CompressionAlgorithm RCCResourceLibrary::compressionAlgorithm ( ) const
inline

Definition at line 68 of file rcc.h.

Referenced by runRcc().

Here is the caller graph for this function:

◆ compressionAlgorithm() [2/2]

CompressionAlgorithm RCCResourceLibrary::compressionAlgorithm ( ) const
inline

Definition at line 77 of file rcc_p.h.

◆ compressLevel() [1/2]

int RCCResourceLibrary::compressLevel ( ) const
inline

Definition at line 72 of file rcc.h.

◆ compressLevel() [2/2]

int RCCResourceLibrary::compressLevel ( ) const
inline

Definition at line 81 of file rcc_p.h.

◆ compressThreshold() [1/2]

int RCCResourceLibrary::compressThreshold ( ) const
inline

Definition at line 75 of file rcc.h.

◆ compressThreshold() [2/2]

int RCCResourceLibrary::compressThreshold ( ) const
inline

Definition at line 84 of file rcc_p.h.

◆ dataFiles() [1/2]

QStringList RCCResourceLibrary::dataFiles ( ) const

Definition at line 826 of file rcc.cpp.

References RCCFileInfo::Directory, and RCCFileInfo::m_flags.

◆ dataFiles() [2/2]

QStringList RCCResourceLibrary::dataFiles ( ) const

◆ failedResources() [1/2]

QStringList RCCResourceLibrary::failedResources ( ) const
inline

Definition at line 83 of file rcc.h.

◆ failedResources() [2/2]

QStringList RCCResourceLibrary::failedResources ( ) const
inline

Definition at line 92 of file rcc_p.h.

◆ format() [1/2]

Format RCCResourceLibrary::format ( ) const
inline

Definition at line 38 of file rcc.h.

Referenced by runRcc().

Here is the caller graph for this function:

◆ format() [2/2]

Format RCCResourceLibrary::format ( ) const
inline

Definition at line 47 of file rcc_p.h.

◆ formatVersion() [1/2]

int RCCResourceLibrary::formatVersion ( ) const
inline

Definition at line 85 of file rcc.h.

Referenced by RCCFileInfo::writeDataInfo().

Here is the caller graph for this function:

◆ formatVersion() [2/2]

int RCCResourceLibrary::formatVersion ( ) const
inline

Definition at line 94 of file rcc_p.h.

◆ initName() [1/2]

QString RCCResourceLibrary::initName ( ) const
inline

Definition at line 53 of file rcc.h.

◆ initName() [2/2]

QString RCCResourceLibrary::initName ( ) const
inline

Definition at line 62 of file rcc_p.h.

◆ inputFiles() [1/2]

QStringList RCCResourceLibrary::inputFiles ( ) const
inline

Definition at line 41 of file rcc.h.

◆ inputFiles() [2/2]

QStringList RCCResourceLibrary::inputFiles ( ) const
inline

Definition at line 50 of file rcc_p.h.

◆ noZstd() [1/2]

bool RCCResourceLibrary::noZstd ( ) const
inline

Definition at line 88 of file rcc.h.

◆ noZstd() [2/2]

bool RCCResourceLibrary::noZstd ( ) const
inline

Definition at line 97 of file rcc_p.h.

◆ output() [1/2]

bool RCCResourceLibrary::output ( QIODevice & outDevice,
QIODevice & tempDevice,
QIODevice & errorDevice )

Definition at line 921 of file rcc.cpp.

References Pass2.

◆ output() [2/2]

bool RCCResourceLibrary::output ( QIODevice & outDevice,
QIODevice & tempDevice,
QIODevice & errorDevice )

◆ outputName() [1/2]

QString RCCResourceLibrary::outputName ( ) const
inline

Definition at line 56 of file rcc.h.

◆ outputName() [2/2]

QString RCCResourceLibrary::outputName ( ) const
inline

Definition at line 65 of file rcc_p.h.

◆ parseCompressionAlgorithm() [1/2]

RCCResourceLibrary::CompressionAlgorithm RCCResourceLibrary::parseCompressionAlgorithm ( QStringView algo,
QString * errorMsg )
static

Definition at line 872 of file rcc.cpp.

References Best, None, and Zlib.

◆ parseCompressionAlgorithm() [2/2]

CompressionAlgorithm RCCResourceLibrary::parseCompressionAlgorithm ( QStringView algo,
QString * errorMsg )
static

◆ parseCompressionLevel() [1/2]

int RCCResourceLibrary::parseCompressionLevel ( CompressionAlgorithm algo,
const QString & level,
QString * errorMsg )
static

Definition at line 895 of file rcc.cpp.

References Best, None, Zlib, and Zstd.

◆ parseCompressionLevel() [2/2]

int RCCResourceLibrary::parseCompressionLevel ( CompressionAlgorithm algo,
const QString & level,
QString * errorMsg )
static

◆ readFiles() [1/2]

bool RCCResourceLibrary::readFiles ( bool listMode,
QIODevice & errorDevice )

Definition at line 785 of file rcc.cpp.

◆ readFiles() [2/2]

bool RCCResourceLibrary::readFiles ( bool listMode,
QIODevice & errorDevice )

◆ resourceDataFileMap() [1/2]

RCCResourceLibrary::ResourceDataFileMap RCCResourceLibrary::resourceDataFileMap ( ) const

Definition at line 864 of file rcc.cpp.

◆ resourceDataFileMap() [2/2]

ResourceDataFileMap RCCResourceLibrary::resourceDataFileMap ( ) const

◆ resourceRoot() [1/2]

QString RCCResourceLibrary::resourceRoot ( ) const
inline

Definition at line 78 of file rcc.h.

◆ resourceRoot() [2/2]

QString RCCResourceLibrary::resourceRoot ( ) const
inline

Definition at line 87 of file rcc_p.h.

◆ setCompressionAlgorithm() [1/2]

void RCCResourceLibrary::setCompressionAlgorithm ( CompressionAlgorithm algo)
inline

Definition at line 67 of file rcc.h.

Referenced by runRcc().

Here is the caller graph for this function:

◆ setCompressionAlgorithm() [2/2]

void RCCResourceLibrary::setCompressionAlgorithm ( CompressionAlgorithm algo)
inline

Definition at line 76 of file rcc_p.h.

◆ setCompressLevel() [1/2]

void RCCResourceLibrary::setCompressLevel ( int c)
inline

Definition at line 71 of file rcc.h.

Referenced by runRcc().

Here is the caller graph for this function:

◆ setCompressLevel() [2/2]

void RCCResourceLibrary::setCompressLevel ( int c)
inline

Definition at line 80 of file rcc_p.h.

◆ setCompressThreshold() [1/2]

void RCCResourceLibrary::setCompressThreshold ( int t)
inline

Definition at line 74 of file rcc.h.

◆ setCompressThreshold() [2/2]

void RCCResourceLibrary::setCompressThreshold ( int t)
inline

Definition at line 83 of file rcc_p.h.

◆ setFormat() [1/2]

void RCCResourceLibrary::setFormat ( Format f)
inline

Definition at line 37 of file rcc.h.

Referenced by runRcc().

Here is the caller graph for this function:

◆ setFormat() [2/2]

void RCCResourceLibrary::setFormat ( Format f)
inline

Definition at line 46 of file rcc_p.h.

◆ setInitName() [1/2]

void RCCResourceLibrary::setInitName ( const QString & name)
inline

Definition at line 52 of file rcc.h.

◆ setInitName() [2/2]

void RCCResourceLibrary::setInitName ( const QString & name)
inline

Definition at line 61 of file rcc_p.h.

◆ setInputFiles() [1/2]

void RCCResourceLibrary::setInputFiles ( const QStringList & files)
inline

Definition at line 40 of file rcc.h.

◆ setInputFiles() [2/2]

void RCCResourceLibrary::setInputFiles ( const QStringList & files)
inline

Definition at line 49 of file rcc_p.h.

◆ setNoZstd() [1/2]

void RCCResourceLibrary::setNoZstd ( bool v)
inline

Definition at line 87 of file rcc.h.

Referenced by runRcc().

Here is the caller graph for this function:

◆ setNoZstd() [2/2]

void RCCResourceLibrary::setNoZstd ( bool v)
inline

Definition at line 96 of file rcc_p.h.

◆ setOutputName() [1/2]

void RCCResourceLibrary::setOutputName ( const QString & name)
inline

Definition at line 55 of file rcc.h.

◆ setOutputName() [2/2]

void RCCResourceLibrary::setOutputName ( const QString & name)
inline

Definition at line 64 of file rcc_p.h.

◆ setResourceRoot() [1/2]

void RCCResourceLibrary::setResourceRoot ( const QString & root)
inline

Definition at line 77 of file rcc.h.

◆ setResourceRoot() [2/2]

void RCCResourceLibrary::setResourceRoot ( const QString & root)
inline

Definition at line 86 of file rcc_p.h.

◆ setUseNameSpace() [1/2]

void RCCResourceLibrary::setUseNameSpace ( bool v)
inline

Definition at line 80 of file rcc.h.

Referenced by runRcc().

Here is the caller graph for this function:

◆ setUseNameSpace() [2/2]

void RCCResourceLibrary::setUseNameSpace ( bool v)
inline

Definition at line 89 of file rcc_p.h.

◆ setVerbose() [1/2]

void RCCResourceLibrary::setVerbose ( bool b)
inline

Definition at line 49 of file rcc.h.

Referenced by runRcc().

Here is the caller graph for this function:

◆ setVerbose() [2/2]

void RCCResourceLibrary::setVerbose ( bool b)
inline

Definition at line 58 of file rcc_p.h.

◆ useNameSpace() [1/2]

bool RCCResourceLibrary::useNameSpace ( ) const
inline

Definition at line 81 of file rcc.h.

Referenced by runRcc().

Here is the caller graph for this function:

◆ useNameSpace() [2/2]

bool RCCResourceLibrary::useNameSpace ( ) const
inline

Definition at line 90 of file rcc_p.h.

◆ verbose() [1/2]

bool RCCResourceLibrary::verbose ( ) const
inline

Definition at line 50 of file rcc.h.

Referenced by RCCFileInfo::writeDataBlob().

Here is the caller graph for this function:

◆ verbose() [2/2]

bool RCCResourceLibrary::verbose ( ) const
inline

Definition at line 59 of file rcc_p.h.

◆ RCCFileInfo

RCCFileInfo
friend

Definition at line 105 of file rcc.h.


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