GNU Octave  6.2.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
octave::process_execution_result Class Reference

#include "oct-process.h"

Collaboration diagram for octave::process_execution_result:

Public Member Functions

 process_execution_result (int status, int exit_status, const std::string &stdout_output, const std::string &err_msg)
 
 process_execution_result (void)
 
std::string err_msg (void) const
 
int exit_status (void) const
 
int status (void) const
 
std::string stdout_output (void) const
 

Static Public Member Functions

static process_execution_result of_error (int status, const std::string &err_msg)
 
static process_execution_result of_success (int exit_status, const std::string &stdout_output)
 

Private Attributes

std::string m_err_msg
 
int m_exit_status
 
int m_status
 
std::string m_stdout_output
 

Detailed Description

Definition at line 36 of file oct-process.h.

Constructor & Destructor Documentation

◆ process_execution_result() [1/2]

octave::process_execution_result::process_execution_result ( void  )
inline

Definition at line 41 of file oct-process.h.

Referenced by of_error(), and of_success().

◆ process_execution_result() [2/2]

octave::process_execution_result::process_execution_result ( int  status,
int  exit_status,
const std::string &  stdout_output,
const std::string &  err_msg 
)
inline

Definition at line 45 of file oct-process.h.

Member Function Documentation

◆ err_msg()

std::string octave::process_execution_result::err_msg ( void  ) const
inline

Definition at line 62 of file oct-process.h.

Referenced by of_error().

◆ exit_status()

int octave::process_execution_result::exit_status ( void  ) const
inline

Definition at line 60 of file oct-process.h.

Referenced by initialize_jvm(), and of_success().

◆ of_error()

OCTINTERP_API process_execution_result octave::process_execution_result::of_error ( int  status,
const std::string &  err_msg 
)
static

Definition at line 46 of file oct-process.cc.

References process_execution_result(), err_msg(), and status().

Referenced by octave::run_command_and_return_output().

◆ of_success()

OCTINTERP_API process_execution_result octave::process_execution_result::of_success ( int  exit_status,
const std::string &  stdout_output 
)
static

◆ status()

int octave::process_execution_result::status ( void  ) const
inline

Definition at line 58 of file oct-process.h.

Referenced by of_error().

◆ stdout_output()

std::string octave::process_execution_result::stdout_output ( void  ) const
inline

Definition at line 64 of file oct-process.h.

Referenced by initialize_jvm(), and of_success().

Member Data Documentation

◆ m_err_msg

std::string octave::process_execution_result::m_err_msg
private

Definition at line 72 of file oct-process.h.

◆ m_exit_status

int octave::process_execution_result::m_exit_status
private

Definition at line 75 of file oct-process.h.

◆ m_status

int octave::process_execution_result::m_status
private

Definition at line 69 of file oct-process.h.

◆ m_stdout_output

std::string octave::process_execution_result::m_stdout_output
private

Definition at line 78 of file oct-process.h.


The documentation for this class was generated from the following files: