GNU Octave  9.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"

Public Member Functions

 process_execution_result ()
 
 process_execution_result (int status, int exit_status, const std::string &stdout_output, const std::string &err_msg)
 
std::string err_msg () const
 
int exit_status () const
 
int status () const
 
std::string stdout_output () 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)
 

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 ( )
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 ( ) const
inline

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

Referenced by of_error().

◆ exit_status()

int process_execution_result::exit_status ( ) const
inline

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

Referenced by of_success().

◆ 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 ( ) const
inline

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

Referenced by of_error().

◆ stdout_output()

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

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

Referenced by of_success().


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