Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
rcc.cpp File Reference

(5e699c2a8b50be1c02e354171c98953c4d95c79d)

#include "rcc.h"
#include <qbytearray.h>
#include <qdatetime.h>
#include <qdebug.h>
#include <qdir.h>
#include <qdirlisting.h>
#include <qfile.h>
#include <qiodevice.h>
#include <qlocale.h>
#include <qstack.h>
#include <qxmlstream.h>
#include <algorithm>
+ Include dependency graph for rcc.cpp:

Go to the source code of this file.

Classes

class  RCCFileInfo
 
struct  qt_rcc_compare_hash
 

Enumerations

enum  {
  CONSTANT_USENAMESPACE = 1 , CONSTANT_COMPRESSLEVEL_DEFAULT = -1 , CONSTANT_ZSTDCOMPRESSLEVEL_CHECK = 1 , CONSTANT_ZSTDCOMPRESSLEVEL_STORE = 14 ,
  CONSTANT_COMPRESSTHRESHOLD_DEFAULT = 70
}
 
enum  RCCXmlTag { RccTag , ResourceTag , FileTag }
 

Functions

static QString msgOpenReadFailed (const QString &fname, const QString &why)
 
 Q_DECLARE_TYPEINFO (RCCXmlTag, Q_PRIMITIVE_TYPE)
 
static bool parseBoolean (QStringView value, QString *errorMsg)
 
static void resourceDataFileMapRecursion (const RCCFileInfo *m_root, const QString &path, RCCResourceLibrary::ResourceDataFileMap &m)
 

Variables

static const char hexDigits [] = "0123456789abcdef"
 

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
CONSTANT_USENAMESPACE 
CONSTANT_COMPRESSLEVEL_DEFAULT 
CONSTANT_ZSTDCOMPRESSLEVEL_CHECK 
CONSTANT_ZSTDCOMPRESSLEVEL_STORE 
CONSTANT_COMPRESSTHRESHOLD_DEFAULT 

Definition at line 30 of file rcc.cpp.

◆ RCCXmlTag

enum RCCXmlTag
Enumerator
RccTag 
ResourceTag 
FileTag 

Definition at line 468 of file rcc.cpp.

Function Documentation

◆ msgOpenReadFailed()

static QString msgOpenReadFailed ( const QString & fname,
const QString & why )
inlinestatic

Definition at line 54 of file rcc.cpp.

References QString::fromLatin1().

Referenced by RCCResourceLibrary::readFiles(), and RCCFileInfo::writeDataBlob().

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

◆ parseBoolean()

static bool parseBoolean ( QStringView value,
QString * errorMsg )
static

Definition at line 475 of file rcc.cpp.

References Qt::CaseInsensitive, and QString::fromLatin1().

+ Here is the call graph for this function:

◆ Q_DECLARE_TYPEINFO()

Q_DECLARE_TYPEINFO ( RCCXmlTag ,
Q_PRIMITIVE_TYPE  )

◆ resourceDataFileMapRecursion()

static void resourceDataFileMapRecursion ( const RCCFileInfo * m_root,
const QString & path,
RCCResourceLibrary::ResourceDataFileMap & m )
static

Definition at line 843 of file rcc.cpp.

References child, QMultiHash< Key, T >::constBegin(), QMultiHash< Key, T >::constEnd(), RCCFileInfo::Directory, it, RCCFileInfo::m_children, and resourceDataFileMapRecursion().

Referenced by RCCResourceLibrary::resourceDataFileMap(), and resourceDataFileMapRecursion().

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

Variable Documentation

◆ hexDigits

const char hexDigits[] = "0123456789abcdef"
static

Definition at line 993 of file rcc.cpp.