5#include "qx/io/qx_io_export.h"
12#include <QDirIterator>
13#include <QCryptographicHash>
16#include "qx/io/qx-ioopreport.h"
17#include "qx/io/qx-textpos.h"
18#include "qx/io/qx-textquery.h"
21#include "qx/core/qx-index.h"
The IoOpReport class is a container for details regarding the outcome of an IO operation.
Definition qx-ioopreport.h:53
The TextPos class is used to represent an offset within a text file in terms of lines and characters.
Definition qx-textpos.h:18
The TextQuery class contains rules for conducting a search of text.
Definition qx-textquery.h:17
The Qx namespace is the main namespace through which all non-global functionality of the Qx library i...
Definition qx-processwaiter.cpp:5
WriteOption
Definition qx-common-io.h:29
@ CreatePath
Definition qx-common-io.h:31
@ Pad
Definition qx-common-io.h:35
@ NoWriteOptions
Definition qx-common-io.h:30
@ ExistingOnly
Definition qx-common-io.h:32
@ NewOnly
Definition qx-common-io.h:33
@ Unbuffered
Definition qx-common-io.h:36
@ EnsureBreak
Definition qx-common-io.h:34
const QString LIST_ITEM_PREFIX
Definition qx-common-io.h:53
IoOpReport copyDirectory(const QDir &directory, const QDir &destination, bool recursive, ReplaceMode replaceMode)
Definition qx-common-io.cpp:1412
WriteMode
Definition qx-common-io.h:27
@ Insert
Definition qx-common-io.h:27
@ Append
Definition qx-common-io.h:27
@ Truncate
Definition qx-common-io.h:27
@ Overwrite
Definition qx-common-io.h:27
IoOpReport writeBytesToFile(QFile &file, const QByteArray &bytes, WriteMode writeMode, Index64 startPos, WriteOptions writeOptions)
Definition qx-common-io.cpp:1689
IoOpReport dirContentInfoList(QFileInfoList &returnBuffer, const QDir &directory, QStringList nameFilters, QDir::Filters filters, QDirIterator::IteratorFlags flags)
Definition qx-common-io.cpp:1333
@ Last
Definition qx-global.h:21
@ End
Definition qx-global.h:22
@ Start
Definition qx-global.h:20
IoOpReport dirContentList(QStringList &returnBuffer, const QDir &directory, QStringList nameFilters, QDir::Filters filters, QDirIterator::IteratorFlags flags, PathType pathType)
Definition qx-common-io.cpp:1377
IoOpReport writeStringToFile(QFile &textFile, const QString &text, WriteMode writeMode, TextPos startPos, WriteOptions writeOptions)
Definition qx-common-io.cpp:1157
Index< qint32 > Index64
Definition qx-index.h:304
QString kosherizeFileName(QString fileName)
Definition qx-common-io.cpp:231
IoOpReport calculateFileChecksum(QString &returnBuffer, QFile &file, QCryptographicHash::Algorithm hashAlgorithm)
Definition qx-common-io.cpp:1460
ReadOption
Definition qx-common-io.h:41
@ IgnoreTrailingBreak
Definition qx-common-io.h:43
@ NoReadOptions
Definition qx-common-io.h:42
Index< qint32 > Index32
Definition qx-index.h:303
IoOpReport findStringInFile(QList< TextPos > &returnBuffer, QFile &textFile, const TextQuery &query, ReadOptions readOptions)
Definition qx-common-io.cpp:489
PathType
Definition qx-common-io.h:48
@ Absolute
Definition qx-common-io.h:48
@ Relative
Definition qx-common-io.h:48
IoOpReport readTextFromFile(QString &returnBuffer, QFile &textFile, TextPos startPos, int count, ReadOptions readOptions)
Definition qx-common-io.cpp:637
IoOpReport textFileLayout(QList< int > &returnBuffer, QFile &textFile, bool ignoreTrailingEmpty)
Definition qx-common-io.cpp:339
IoOpReport textFileAbsolutePosition(TextPos &textPos, QFile &textFile, bool ignoreTrailingEmpty)
Definition qx-common-io.cpp:443
IoOpReport fileContainsString(bool &returnBuffer, QFile &textFile, const QString &query, Qt::CaseSensitivity cs, bool allowSplit)
Definition qx-common-io.cpp:613
IoOpReport textFileLineCount(int &returnBuffer, QFile &textFile, bool ignoreTrailingEmpty)
Definition qx-common-io.cpp:389
ReplaceMode
Definition qx-common-io.h:26
@ Skip
Definition qx-common-io.h:26
@ Stop
Definition qx-common-io.h:26
@ Replace
Definition qx-common-io.h:26
IoOpReport deleteTextFromFile(QFile &textFile, TextPos startPos, TextPos endPos)
Definition qx-common-io.cpp:1204
IoOpReport fileMatchesChecksum(bool &returnBuffer, QFile &file, QString checksum, QCryptographicHash::Algorithm hashAlgorithm)
Definition qx-common-io.cpp:1502
IoOpReport textFileEndsWithNewline(bool &returnBuffer, QFile &textFile)
Definition qx-common-io.cpp:281
IoOpReport readBytesFromFile(QByteArray &returnBuffer, QFile &file, Index64 startPos, Index64 endPos)
Definition qx-common-io.cpp:1531
bool fileIsEmpty(const QFile &file)
Definition qx-common-io.cpp:196
bool dirContainsFiles(const QDir &directory, QDirIterator::IteratorFlags iteratorFlags)
Definition qx-common-io.cpp:1289
const QChar ENDL
Definition qx-common-io.h:52