| 152 | PipeDescriptor* pipeDescriptor; |
| 153 | }; |
| 154 | |
| 155 | struct StdOut : public StdStream |
| 156 | { |
| 157 | // clang-format off |
| 158 | struct Ignore{}; |
| 159 | struct Inherit{}; |
| 160 | |
| 161 | |
| 162 | /// @brief Ignores child process standard output/error (child process output will be silenced) |
| 163 | StdOut(GrowableBuffer<StdOut::Ignore>) { operation = Operation::Ignore; } |
| 164 | |
| 165 | /// @brief Inherits child process standard output/error (child process will print into parent process console) |
| 166 | StdOut(GrowableBuffer<StdOut::Inherit>) { operation = Operation::Inherit; } |
| 167 | StdOut(GrowableBuffer<StdOut>) { operation = Operation::Inherit; } |
| 168 | StdOut() { operation = Operation::Inherit; } |
| 169 | |
| 170 | /// @brief Read the process standard output/error into the given Span |
| 171 | StdOut(GrowableBuffer<Span<char>>& span) { operation = Operation::WritableSpan; writableSpan = &span.content; span.setContentInDestructor = false; } |
| 172 | |
| 173 | using StdStream::StdStream; |
| 174 | friend struct ProcessChain; |
| 175 | // clang-format on |
| 176 | }; |
| 177 | |
| 178 | using StdErr = StdOut; |