12#include <OpenMS/VISUAL/OpenMS_GUIConfig.h>
39 ExternalProcessMBox(std::function<
void(
const std::string&)> callbackStdOut, std::function<
void(
const std::string&)> callbackStdErr);
45 void setCallbacks(std::function<
void(
const std::string&)> callbackStdOut, std::function<
void(
const std::string&)> callbackStdErr);
A wrapper around ExternalProcess to conveniently show a MessageBox when an error occurs.
Definition ExternalProcessMBox.h:33
void setCallbacks(std::function< void(const std::string &)> callbackStdOut, std::function< void(const std::string &)> callbackStdErr)
re-wire the callbacks used using run()
ExternalProcessMBox(std::function< void(const std::string &)> callbackStdOut, std::function< void(const std::string &)> callbackStdErr)
set the callback functions to process stdout and stderr output when the external process generates it
ExternalProcess::RETURNSTATE run(QWidget *parent, const std::string &exe, const std::vector< std::string > &args, const std::string &working_dir, const bool verbose, std::string &error_msg)
Runs a program by calling ExternalProcess::run and shows any error reported in error_msg as a Message...
ExternalProcess::RETURNSTATE run(QWidget *parent, const std::string &exe, const std::vector< std::string > &args, const std::string &working_dir, const bool verbose)
Same as other overload, just without a returned error message.
ExternalProcess ep_
Definition ExternalProcessMBox.h:67
~ExternalProcessMBox()
D'tor.
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
Main OpenMS namespace.
Definition openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19