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

#include "oct-process.h"

Collaboration diagram for 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 OCTINTERP_API process_execution_result of_error (int status, const std::string &err_msg)
 
static OCTINTERP_API 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 35 of file oct-process.h.

Constructor & Destructor Documentation

◆ process_execution_result() [1/2]

process_execution_result::process_execution_result ( void  )
inline

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

Referenced by of_error(), and of_success().

◆ process_execution_result() [2/2]

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 44 of file oct-process.h.

Member Function Documentation

◆ err_msg()

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

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

Referenced by of_error(), and latex_renderer::warn_helper().

◆ exit_status()

int process_execution_result::exit_status ( void  ) const
inline

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

Referenced by of_success(), and latex_renderer::render().

◆ of_error()

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

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

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

Referenced by run_command_and_return_output().

◆ of_success()

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

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

References process_execution_result(), exit_status(), and stdout_output().

Referenced by run_command_and_return_output().

◆ status()

int process_execution_result::status ( void  ) const
inline

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

Referenced by of_error().

◆ stdout_output()

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

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

Referenced by of_success(), and latex_renderer::warn_helper().

Member Data Documentation

◆ m_err_msg

std::string process_execution_result::m_err_msg
private

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

◆ m_exit_status

int process_execution_result::m_exit_status
private

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

◆ m_status

int process_execution_result::m_status
private

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

◆ m_stdout_output

std::string process_execution_result::m_stdout_output
private

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


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