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
QMakeInternal::IoUtils Class Reference

This class provides replacement functionality for QFileInfo, QFile & QDir, as these are abysmally slow. More...

#include <ioutils.h>

+ Collaboration diagram for QMakeInternal::IoUtils:

Public Types

enum  FileType { FileNotFound = 0 , FileIsRegular = 1 , FileIsDir = 2 }
 

Static Public Member Functions

static QString binaryAbsLocation (const QString &argv0)
 
static FileType fileType (const QString &fileName)
 
static bool exists (const QString &fileName)
 
static bool isRelativePath (const QString &fileName)
 
static bool isAbsolutePath (const QString &fileName)
 
static QStringView pathName (const QString &fileName)
 
static QStringView fileName (const QString &fileName)
 
static QString resolvePath (const QString &baseDir, const QString &fileName)
 
static QString shellQuoteUnix (const QString &arg)
 
static QString shellQuoteWin (const QString &arg)
 
static QString shellQuote (const QString &arg)
 

Detailed Description

This class provides replacement functionality for QFileInfo, QFile & QDir, as these are abysmally slow.

Definition at line 19 of file ioutils.h.

Member Enumeration Documentation

◆ FileType

Enumerator
FileNotFound 
FileIsRegular 
FileIsDir 

Definition at line 21 of file ioutils.h.

Member Function Documentation

◆ binaryAbsLocation()

QString IoUtils::binaryAbsLocation ( const QString & argv0)
static

Definition at line 27 of file ioutils.cpp.

◆ exists()

static bool QMakeInternal::IoUtils::exists ( const QString & fileName)
inlinestatic

Definition at line 29 of file ioutils.h.

References FileNotFound, and fileType().

+ Here is the call graph for this function:

◆ fileName()

QStringView IoUtils::fileName ( const QString & fileName)
static

Definition at line 108 of file ioutils.cpp.

◆ fileType()

IoUtils::FileType IoUtils::fileType ( const QString & fileName)
static

Definition at line 61 of file ioutils.cpp.

Referenced by exists().

+ Here is the caller graph for this function:

◆ isAbsolutePath()

static bool QMakeInternal::IoUtils::isAbsolutePath ( const QString & fileName)
inlinestatic

Definition at line 31 of file ioutils.h.

References isRelativePath().

+ Here is the call graph for this function:

◆ isRelativePath()

bool IoUtils::isRelativePath ( const QString & fileName)
static

Definition at line 77 of file ioutils.cpp.

Referenced by isAbsolutePath().

+ Here is the caller graph for this function:

◆ pathName()

QStringView IoUtils::pathName ( const QString & fileName)
static

Definition at line 103 of file ioutils.cpp.

◆ resolvePath()

QString IoUtils::resolvePath ( const QString & baseDir,
const QString & fileName )
static

Definition at line 113 of file ioutils.cpp.

Referenced by QMakeEvaluator::resolvePath().

+ Here is the caller graph for this function:

◆ shellQuote()

static QString QMakeInternal::IoUtils::shellQuote ( const QString & arg)
inlinestatic

Definition at line 37 of file ioutils.h.

References shellQuote().

Referenced by shellQuote().

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

◆ shellQuoteUnix()

QString IoUtils::shellQuoteUnix ( const QString & arg)
static

Definition at line 146 of file ioutils.cpp.

◆ shellQuoteWin()

QString IoUtils::shellQuoteWin ( const QString & arg)
static

Definition at line 166 of file ioutils.cpp.


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