subprocess  0.4.0
Modern subprocess library for c++
Public Member Functions | Public Attributes | List of all members
subprocess::ProcessBuilder Class Reference

#include <ProcessBuilder.hpp>

Public Member Functions

std::string windows_command ()
 
std::string windows_args ()
 
std::string windows_args (const CommandLine &command)
 
Popen run ()
 
Popen run_command (const CommandLine &command)
 

Public Attributes

std::vector< PipeHandlechild_close_pipes
 
PipeHandle cin_pipe = kBadPipeValue
 
PipeHandle cout_pipe = kBadPipeValue
 
PipeHandle cerr_pipe = kBadPipeValue
 
PipeOption cin_option = PipeOption::inherit
 
PipeOption cout_option = PipeOption::inherit
 
PipeOption cerr_option = PipeOption::inherit
 
bool new_process_group = false
 
EnvMap env
 
std::string cwd
 
CommandLine command
 

Detailed Description

This class does the bulk of the work for starting a process. It is the most customizable and hence the most complex.

Note
Undecided if this should be public API or private.

Member Function Documentation

◆ run()

Popen subprocess::ProcessBuilder::run ( )
inline

◆ run_command()

Popen subprocess::ProcessBuilder::run_command ( const CommandLine command)

◆ windows_args() [1/2]

std::string subprocess::ProcessBuilder::windows_args ( )

◆ windows_args() [2/2]

std::string subprocess::ProcessBuilder::windows_args ( const CommandLine command)

◆ windows_command()

std::string subprocess::ProcessBuilder::windows_command ( )

Member Data Documentation

◆ cerr_option

PipeOption subprocess::ProcessBuilder::cerr_option = PipeOption::inherit

◆ cerr_pipe

PipeHandle subprocess::ProcessBuilder::cerr_pipe = kBadPipeValue

◆ child_close_pipes

std::vector<PipeHandle> subprocess::ProcessBuilder::child_close_pipes

◆ cin_option

PipeOption subprocess::ProcessBuilder::cin_option = PipeOption::inherit

◆ cin_pipe

PipeHandle subprocess::ProcessBuilder::cin_pipe = kBadPipeValue

◆ command

CommandLine subprocess::ProcessBuilder::command

◆ cout_option

PipeOption subprocess::ProcessBuilder::cout_option = PipeOption::inherit

◆ cout_pipe

PipeHandle subprocess::ProcessBuilder::cout_pipe = kBadPipeValue

◆ cwd

std::string subprocess::ProcessBuilder::cwd

◆ env

EnvMap subprocess::ProcessBuilder::env

If empty inherits from current process

◆ new_process_group

bool subprocess::ProcessBuilder::new_process_group = false

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