26 #if ! defined (oct_process_h)
27 #define oct_process_h 1
29 #include "octave-config.h"
41 : m_status (-1), m_err_msg (), m_exit_status (-1), m_stdout_output ()
45 const std::string& stdout_output,
46 const std::string& err_msg)
47 : m_status (status), m_err_msg (err_msg), m_exit_status (exit_status),
48 m_stdout_output (stdout_output)
54 of_success (
int exit_status,
const std::string& stdout_output);
57 of_error (
int status,
const std::string& err_msg);
59 int status ()
const {
return m_status; }
63 std::string
err_msg ()
const {
return m_err_msg; }
73 std::string m_err_msg;
79 std::string m_stdout_output;
85 OCTAVE_END_NAMESPACE(
octave)
process_execution_result(int status, int exit_status, const std::string &stdout_output, const std::string &err_msg)
std::string stdout_output() const
process_execution_result()
std::string err_msg() const
OCTAVE_BEGIN_NAMESPACE(octave) static octave_value daspk_fcn
process_execution_result run_command_and_return_output(const std::string &cmd_str)