40 #include <QtCore/QObject> 96 void setCallbacks(std::function<
void(
const String&)> callbackStdOut, std::function<
void(
const String&)> callbackStdErr);
109 RETURNSTATE run(
const QString& exe,
const QStringList& args,
const QString& working_dir,
const bool verbose,
String& error_msg, IO_MODE io_mode = IO_MODE::READ_WRITE);
117 void processStdOut_();
118 void processStdErr_();
A wrapper around QProcess to conveniently start an external program and forward its outputs...
Definition: ExternalProcess.h:62
A more convenient string class.
Definition: String.h:58
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47
RETURNSTATE
result of calling an external executable
Definition: ExternalProcess.h:69
std::function< void(const String &)> callbackStdOut_
Definition: ExternalProcess.h:122
QProcess * qp_
pointer to avoid including the QProcess header here (it's huge)
Definition: ExternalProcess.h:121
IO_MODE
Open mode for the process.
Definition: ExternalProcess.h:78
std::function< void(const String &)> callbackStdErr_
Definition: ExternalProcess.h:123
int verbose
Verbosity level ( "-v" is 1 and "-V" is 2 )