#include <child.hpp>
Public Member Functions | |
postream & | get_stdin () const |
pistream & | get_stdout () const |
pistream & | get_stderr () const |
status | wait () |
child (id_type id, detail::file_handle fhstdin, detail::file_handle fhstdout, detail::file_handle fhstderr, detail::file_handle fhprocess=detail::file_handle()) |
The child class implements the Child concept in an operating system agnostic way.
boost::process::child::child | ( | id_type | id, | |
detail::file_handle | fhstdin, | |||
detail::file_handle | fhstdout, | |||
detail::file_handle | fhstderr, | |||
detail::file_handle | fhprocess = detail::file_handle() | |||
) | [inline] |
Creates a new child object that represents the just spawned child process id.
The fhstdin, fhstdout and fhstderr file handles represent the parent's handles used to communicate with the corresponding data streams. They needn't be valid but their availability must match the redirections configured by the launcher that spawned this process.
The fhprocess handle represents a handle to the child process. It is only used on Windows as the implementation of wait() needs a process handle.
postream& boost::process::child::get_stdin | ( | ) | const [inline] |
pistream& boost::process::child::get_stdout | ( | ) | const [inline] |
pistream& boost::process::child::get_stderr | ( | ) | const [inline] |
status boost::process::child::wait | ( | ) | [inline] |