subprocess
0.4.0
Modern subprocess library for c++
|
#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< PipeHandle > | child_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 |
This class does the bulk of the work for starting a process. It is the most customizable and hence the most complex.
|
inline |
Popen subprocess::ProcessBuilder::run_command | ( | const CommandLine & | command | ) |
std::string subprocess::ProcessBuilder::windows_args | ( | ) |
std::string subprocess::ProcessBuilder::windows_args | ( | const CommandLine & | command | ) |
std::string subprocess::ProcessBuilder::windows_command | ( | ) |
PipeOption subprocess::ProcessBuilder::cerr_option = PipeOption::inherit |
PipeHandle subprocess::ProcessBuilder::cerr_pipe = kBadPipeValue |
std::vector<PipeHandle> subprocess::ProcessBuilder::child_close_pipes |
PipeOption subprocess::ProcessBuilder::cin_option = PipeOption::inherit |
PipeHandle subprocess::ProcessBuilder::cin_pipe = kBadPipeValue |
CommandLine subprocess::ProcessBuilder::command |
PipeOption subprocess::ProcessBuilder::cout_option = PipeOption::inherit |
PipeHandle subprocess::ProcessBuilder::cout_pipe = kBadPipeValue |
std::string subprocess::ProcessBuilder::cwd |
EnvMap subprocess::ProcessBuilder::env |
If empty inherits from current process
bool subprocess::ProcessBuilder::new_process_group = false |