26 #if ! defined (oct_process_h)
27 #define oct_process_h 1
29 #include "octave-config.h"
42 : m_status (-1), m_err_msg (), m_exit_status (-1), m_stdout_output ()
46 const std::string& stdout_output,
47 const std::string& err_msg)
48 : m_status (status), m_err_msg (err_msg), m_exit_status (exit_status),
49 m_stdout_output (stdout_output)
53 of_success (
int exit_status,
const std::string& stdout_output);
56 of_error (
int status,
const std::string& err_msg);
58 int status (
void)
const {
return m_status; }
62 std::string
err_msg (
void)
const {
return m_err_msg; }
process_execution_result(void)
std::string err_msg(void) const
process_execution_result(int status, int exit_status, const std::string &stdout_output, const std::string &err_msg)
std::string m_stdout_output
int exit_status(void) const
std::string stdout_output(void) const
OCTINTERP_API process_execution_result run_command_and_return_output(const std::string &cmd_str)