38 #include <OpenMS/VISUAL/OpenMS_GUIConfig.h>
A wrapper around ExternalProcess to conveniently show a MessageBox when an error occurs.
Definition: ExternalProcessMBox.h:55
ExternalProcess::RETURNSTATE run(QWidget *parent, const QString &exe, const QStringList &args, const QString &working_dir, const bool verbose, String &error_msg)
Runs a program by calling ExternalProcess::run and shows any error reported in error_msg as a Message...
void setCallbacks(std::function< void(const String &)> callbackStdOut, std::function< void(const String &)> callbackStdErr)
re-wire the callbacks used using run()
ExternalProcess ep_
Definition: ExternalProcessMBox.h:89
~ExternalProcessMBox()
D'tor.
ExternalProcessMBox(std::function< void(const String &)> callbackStdOut, std::function< void(const String &)> callbackStdErr)
set the callback functions to process stdout and stderr output when the external process generates it
ExternalProcess::RETURNSTATE run(QWidget *parent, const QString &exe, const QStringList &args, const QString &working_dir, const bool verbose)
Same as other overload, just without a returned error message.
ExternalProcessMBox()
default Ctor; callbacks for stdout/stderr are empty
A wrapper around QProcess to conveniently start an external program and forward its outputs.
Definition: ExternalProcess.h:64
RETURNSTATE
result of calling an external executable
Definition: ExternalProcess.h:70
A more convenient string class.
Definition: String.h:61
int verbose
Verbosity level ( "-v" is 1 and "-V" is 2 )
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47