12#include <OpenMS/VISUAL/OpenMS_GUIConfig.h>
A wrapper around ExternalProcess to conveniently show a MessageBox when an error occurs.
Definition ExternalProcessMBox.h:33
ExternalProcess::RETURNSTATE run(QWidget *parent, const String &exe, const std::vector< String > &args, const String &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:67
~ExternalProcessMBox()
D'tor.
ExternalProcess::RETURNSTATE run(QWidget *parent, const String &exe, const std::vector< String > &args, const String &working_dir, const bool verbose)
Same as other overload, just without a returned error message.
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
ExternalProcessMBox()
default Ctor; callbacks for stdout/stderr are empty
A wrapper around boost::process to conveniently start an external program and forward its outputs.
Definition ExternalProcess.h:33
RETURNSTATE
result of calling an external executable
Definition ExternalProcess.h:37
A more convenient string class.
Definition String.h:32
Main OpenMS namespace.
Definition openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19