Helpers for draining process output into log entries.
More...
#include "core/LogEntry.h"
#include "core/ProcessLogParser.h"
#include <QDateTime>
#include <QHash>
#include <QProcess>
#include <functional>
Go to the source code of this file.
|
| void | acav::emitParsedOutput (QString &buffer, const QString &chunk, const QString &source, bool isStdErr, const LogEmitter &emitLog) |
| void | acav::emitParsedOutput (QHash< QProcess *, QString > &buffers, QProcess *process, const QString &chunk, const QString &source, bool isStdErr, const LogEmitter &emitLog) |
| void | acav::drainProcessOutput (QProcess *process, QString &stdoutBuffer, QString &stderrBuffer, const QString &source, const LogEmitter &emitLog) |
| void | acav::drainProcessOutput (QProcess *process, QString &stdoutBuffer, QString &stderrBuffer, const QString &source, const LogEmitter &emitLog, QString *stdoutCapture, QString *stderrCapture) |
| void | acav::drainProcessOutput (QProcess *process, QHash< QProcess *, QString > &stdoutBuffers, QHash< QProcess *, QString > &stderrBuffers, const QString &source, const LogEmitter &emitLog) |
| void | acav::drainProcessOutput (QProcess *process, QHash< QProcess *, QString > &stdoutBuffers, QHash< QProcess *, QString > &stderrBuffers, const QString &source, const LogEmitter &emitLog, QString *stdoutCapture, QString *stderrCapture) |
| void | acav::emitErrorLog (const QString &source, const QString &message, const LogEmitter &emitLog) |
Helpers for draining process output into log entries.
Definition in file ProcessOutputUtils.h.
◆ LogEmitter
| using acav::LogEmitter = std::function<void(const LogEntry &)> |
◆ drainProcessOutput() [1/4]
| void acav::drainProcessOutput |
( |
QProcess * | process, |
|
|
QHash< QProcess *, QString > & | stdoutBuffers, |
|
|
QHash< QProcess *, QString > & | stderrBuffers, |
|
|
const QString & | source, |
|
|
const LogEmitter & | emitLog ) |
|
inline |
◆ drainProcessOutput() [2/4]
| void acav::drainProcessOutput |
( |
QProcess * | process, |
|
|
QHash< QProcess *, QString > & | stdoutBuffers, |
|
|
QHash< QProcess *, QString > & | stderrBuffers, |
|
|
const QString & | source, |
|
|
const LogEmitter & | emitLog, |
|
|
QString * | stdoutCapture, |
|
|
QString * | stderrCapture ) |
|
inline |
◆ drainProcessOutput() [3/4]
| void acav::drainProcessOutput |
( |
QProcess * | process, |
|
|
QString & | stdoutBuffer, |
|
|
QString & | stderrBuffer, |
|
|
const QString & | source, |
|
|
const LogEmitter & | emitLog ) |
|
inline |
◆ drainProcessOutput() [4/4]
| void acav::drainProcessOutput |
( |
QProcess * | process, |
|
|
QString & | stdoutBuffer, |
|
|
QString & | stderrBuffer, |
|
|
const QString & | source, |
|
|
const LogEmitter & | emitLog, |
|
|
QString * | stdoutCapture, |
|
|
QString * | stderrCapture ) |
|
inline |
◆ emitErrorLog()
| void acav::emitErrorLog |
( |
const QString & | source, |
|
|
const QString & | message, |
|
|
const LogEmitter & | emitLog ) |
|
inline |
◆ emitParsedOutput() [1/2]
| void acav::emitParsedOutput |
( |
QHash< QProcess *, QString > & | buffers, |
|
|
QProcess * | process, |
|
|
const QString & | chunk, |
|
|
const QString & | source, |
|
|
bool | isStdErr, |
|
|
const LogEmitter & | emitLog ) |
|
inline |
◆ emitParsedOutput() [2/2]
| void acav::emitParsedOutput |
( |
QString & | buffer, |
|
|
const QString & | chunk, |
|
|
const QString & | source, |
|
|
bool | isStdErr, |
|
|
const LogEmitter & | emitLog ) |
|
inline |