|
Dobby 3.0
Dobby “Docker based Thingy” is a tool for managing and running OCI containers using crun
|
Utility object that creates a pipe that can be used to capture stdout/ stderr. More...
#include <StdStreamPipe.h>
Public Member Functions | |
| StdStreamPipe (bool logPipeContents) | |
| Creates a new pipe that can be used to capture std streams. | |
| int | writeFd () const |
| std::string | getPipeContents () const |
| Gets the contents of the pipe as a string. | |
Private Attributes | |
| int | mReadFd |
| int | mWriteFd |
| bool | mLogPipe |
Utility object that creates a pipe that can be used to capture stdout/ stderr.
| StdStreamPipe::StdStreamPipe | ( | bool | logPipeContents | ) |
Creates a new pipe that can be used to capture std streams.
| logPipeContents | If true, then log the contents of the pipe when destructed (useful for capturing stderr) |
| std::string StdStreamPipe::getPipeContents | ( | ) | const |
Gets the contents of the pipe as a string.