#include <stream_info.hpp>
Public Types | |
| enum | type { close, inherit, redirect, use_file, use_handle, use_pipe } |
Public Member Functions | |
| stream_info (const stream_behavior &sb, bool out) | |
Public Attributes | |
| type | type_ |
| int | desc_to_ |
| std::string | file_ |
| file_handle | handle_ |
| boost::optional< pipe > | pipe_ |
This convenience structure provides a compact way to pass information around on how to configure a file descriptor. It is a lower-level representation of stream_behavior, as it can hold the same information but in a way that can be used by the underlying operating system.
Supported stream types.
| close | Matches stream_behavior::close. |
| inherit | Matches stream_behavior::inherit. |
| redirect | Matches stream_behavior::redirect_to_stdout and stream_behavior::posix_redirect. |
| use_file | Matches stream_behavior::silence. |
| use_handle | TODO: Matches nothing yet ... |
| use_pipe | Matches stream_behavior::capture. |
| boost::process::detail::stream_info::stream_info | ( | const stream_behavior & | sb, | |
| bool | out | |||
| ) | [inline] |
Constructs a new stream_info object.
Stream type.
Descriptor to use when stream type is set to redirect.
| std::string boost::process::detail::stream_info::file_ |
File to use when stream type is set to use_file.
Handle to use when stream type is set to use_handle.
| boost::optional<pipe> boost::process::detail::stream_info::pipe_ |
Pipe to use when stream type is set to use_pipe.
1.5.5