Async 1.8.0
|
A stream buffer class to stream characters to a PTY. More...
#include <AsyncPtyStreamBuf.h>
Public Member Functions | |
PtyStreamBuf (Pty *pty, std::size_t buf_size=256) | |
Default constructor. | |
~PtyStreamBuf (void) | |
Destructor. | |
Pty * | pty (void) const |
Return the PTY this stream is attached to. | |
A stream buffer class to stream characters to a PTY.
This class can be used to write data to a UNIX 98 PTY using the standard streaming interface. The typical usage pattern is to first create an instance of a Pty. Then an instance of this class is created, the stream buffer. Lastly a std::ostream can be created with the stream buffer as an argument to the constructor. The std::ostream can then be used as any other output stream.
Definition at line 124 of file AsyncPtyStreamBuf.h.
|
explicit |
Default constructor.
pty | A previously created PTY object |
buf_size | The buffer size |
Async::PtyStreamBuf::~PtyStreamBuf | ( | void | ) |
Destructor.
|
inline |
Return the PTY this stream is attached to.
Definition at line 143 of file AsyncPtyStreamBuf.h.