|
JX Application Framework
|
#include <JOutPipeStreambuf.h>
Public Types | |
| using | int_type = typename std::basic_streambuf< _CharT, _Traits >::int_type |
Public Member Functions | |
| JOutPipeStreambuf (const int fd, const bool close) | |
| ~JOutPipeStreambuf () override | |
| int | GetDescriptor () |
| bool | WillClosePipe () const |
| void | ShouldClosePipe (const bool close=true) |
| void | close () |
Protected Member Functions | |
| std::streamsize | xsputn (const _CharT *s, std::streamsize n) override |
| int_type | overflow (int_type c) override |
This class implements an unbuffered streambuf for the write end of a pipe. http://www.horstmann.com/cpp/iostreams.html http://www.codeproject.com/vcpp/stl/custom_iostream_streams.asp
| using JOutPipeStreambuf< _CharT, _Traits >::int_type = typename std::basic_streambuf<_CharT, _Traits>::int_type |
| JOutPipeStreambuf< _CharT, _Traits >::JOutPipeStreambuf | ( | const int | fd, |
| const bool | close | ||
| ) |
|
override |
| void JOutPipeStreambuf< _CharT, _Traits >::close | ( | ) |
This only closes the underlying file descriptor if itsCloseFlag is set.
| int JOutPipeStreambuf< _CharT, _Traits >::GetDescriptor | ( | ) |
|
overrideprotected |
| void JOutPipeStreambuf< _CharT, _Traits >::ShouldClosePipe | ( | const bool | close = true | ) |
| bool JOutPipeStreambuf< _CharT, _Traits >::WillClosePipe | ( | ) | const |
|
overrideprotected |