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)
52 of_success (
int exit_status,
const std::string& stdout_output);
55 of_error (
int status,
const std::string& err_msg);
57 int status (
void)
const {
return m_status; }
61 std::string
err_msg (
void)
const {
return m_err_msg; }
int exit_status(void) const
std::string stdout_output(void) const
process_execution_result(int status, int exit_status, const std::string &stdout_output, const std::string &err_msg)
std::string err_msg(void) const
process_execution_result(void)
std::string m_stdout_output
OCTAVE_BEGIN_NAMESPACE(octave) static octave_value daspk_fcn
OCTINTERP_API process_execution_result run_command_and_return_output(const std::string &cmd_str)