The qx-common-io header file provides various types, variables, and functions related to file IO.
More...
|
IoOpReport | Qx::calculateFileChecksum (QString &returnBuffer, QFile &file, QCryptographicHash::Algorithm hashAlgorithm) |
|
IoOpReport | Qx::copyDirectory (const QDir &directory, const QDir &destination, bool recursive, ReplaceMode replaceMode) |
|
IoOpReport | Qx::deleteTextFromFile (QFile &textFile, TextPos startPos, TextPos endPos) |
|
IoOpReport | Qx::dirContainsFiles (bool &returnBuffer, const QDir &directory, QDirIterator::IteratorFlags iteratorFlags) |
|
bool | Qx::dirContainsFiles (const QDir &directory, QDirIterator::IteratorFlags iteratorFlags) |
|
IoOpReport | Qx::dirContentInfoList (QFileInfoList &returnBuffer, const QDir &directory, QStringList nameFilters, QDir::Filters filters, QDirIterator::IteratorFlags flags) |
|
IoOpReport | Qx::dirContentList (QStringList &returnBuffer, const QDir &directory, QStringList nameFilters, QDir::Filters filters, QDirIterator::IteratorFlags flags, PathType pathType) |
|
IoOpReport | Qx::fileContainsString (bool &returnBuffer, QFile &textFile, const QString &query, Qt::CaseSensitivity cs, bool allowSplit) |
|
IoOpReport | Qx::fileIsEmpty (bool &returnBuffer, const QFile &file) |
|
bool | Qx::fileIsEmpty (const QFile &file) |
|
IoOpReport | Qx::fileMatchesChecksum (bool &returnBuffer, QFile &file, QString checksum, QCryptographicHash::Algorithm hashAlgorithm) |
|
IoOpReport | Qx::findStringInFile (QList< TextPos > &returnBuffer, QFile &textFile, const TextQuery &query, ReadOptions readOptions) |
|
QString | Qx::kosherizeFileName (QString fileName) |
|
IoOpReport | Qx::readBytesFromFile (QByteArray &returnBuffer, QFile &file, Index64 startPos, Index64 endPos) |
|
IoOpReport | Qx::readTextFromFile (QString &returnBuffer, QFile &textFile, TextPos startPos, int count, ReadOptions readOptions) |
|
IoOpReport | Qx::readTextFromFile (QString &returnBuffer, QFile &textFile, TextPos startPos, TextPos endPos, ReadOptions readOptions) |
|
IoOpReport | Qx::readTextFromFile (QStringList &returnBuffer, QFile &textFile, Index32 startLine, Index32 endLine, ReadOptions readOptions) |
|
IoOpReport | Qx::textFileAbsolutePosition (TextPos &textPos, QFile &textFile, bool ignoreTrailingEmpty) |
|
IoOpReport | Qx::textFileEndsWithNewline (bool &returnBuffer, QFile &textFile) |
|
IoOpReport | Qx::textFileLayout (QList< int > &returnBuffer, QFile &textFile, bool ignoreTrailingEmpty) |
|
IoOpReport | Qx::textFileLineCount (int &returnBuffer, QFile &textFile, bool ignoreTrailingEmpty) |
|
IoOpReport | Qx::writeBytesToFile (QFile &file, const QByteArray &bytes, WriteMode writeMode, Index64 startPos, WriteOptions writeOptions) |
|
IoOpReport | Qx::writeBytesToFile (QSaveFile &file, const QByteArray &bytes, WriteMode writeMode, Index64 startPos, WriteOptions writeOptions) |
|
IoOpReport | Qx::writeStringToFile (QFile &textFile, const QString &text, WriteMode writeMode, TextPos startPos, WriteOptions writeOptions) |
|
IoOpReport | Qx::writeStringToFile (QSaveFile &textFile, const QString &text, WriteMode writeMode, TextPos startPos, WriteOptions writeOptions) |
|
Most functions in this file return an IoOpReport that details the success or failure of their actions.
- Note
- All functions in this header that require a file to be opened handle the opening and closing of the file automatically. The file will be reopened in the correct mode if it is already opened, and the file will always be closed when the function returns.