Unbuffered implementation of output streambuf, wraps Sink reference (in terms of Boost.Iostreams). More...
#include <staticlib/io/unbuffered_streambuf.hpp>
Public Member Functions | |
| unbuffered_ostreambuf (Sink &&sink) | |
| Constructor, created sink wrapper will own specified sink. | |
| unbuffered_ostreambuf (const unbuffered_ostreambuf &) | |
| Deleted copy constructor. | |
| unbuffered_ostreambuf & | operator= (const unbuffered_ostreambuf &) |
| Deleted copy assignment operator. | |
| unbuffered_ostreambuf (unbuffered_ostreambuf &&other) STATICLIB_NOEXCEPT | |
| Move constructor. | |
| unbuffered_ostreambuf & | operator= (unbuffered_ostreambuf &&other) STATICLIB_NOEXCEPT |
| Move assignment operator. | |
| Sink & | get_sink () |
| Underlying sink accessor. | |
Public Member Functions inherited from staticlib::io::detail::unbuffered_streambuf_base | |
| virtual int | underflow () override |
| Unsupported method, throws 'UtilsException'. | |
| virtual int | uflow () override |
| Unsupported method, throws 'UtilsException'. | |
| virtual int | overflow (int) override |
| Unsupported method, throws 'UtilsException'. | |
Protected Member Functions | |
| virtual std::streamsize | xsputn (const char *s, std::streamsize count) override |
| Writes count characters to the output sequence from the character array whose first element is pointed to by s. | |
Protected Member Functions inherited from staticlib::io::detail::unbuffered_streambuf_base | |
| virtual std::streamsize | xsgetn (char *, std::streamsize) override |
| Reads count characters from the input sequence and stores them into a character array pointed to by s Should be overriden by Source streambuf inheritors, default implementation throws 'UtilsException'. | |
| virtual unbuffered_streambuf_base * | setbuf (char *, std::streamsize) override |
| Unsupported method, throws 'UtilsException'. | |
| virtual std::streampos | seekoff (std::streamoff, std::ios_base::seekdir, std::ios_base::openmode) override |
| Unsupported method, throws 'UtilsException'. | |
| virtual std::streampos | seekpos (std::streampos, std::ios_base::openmode) override |
| Unsupported method, throws 'UtilsException'. | |
Unbuffered implementation of output streambuf, wraps Sink reference (in terms of Boost.Iostreams).
Should be used directly, must NOT be used wrapped into std::ostream.
|
inlineexplicit |
Constructor, created sink wrapper will own specified sink.
| sink | Sink reference (in terms of Boost.Iostreams) |
| staticlib::io::unbuffered_ostreambuf< Sink >::unbuffered_ostreambuf | ( | const unbuffered_ostreambuf< Sink > & | ) |
Deleted copy constructor.
|
inline |
Move constructor.
|
inline |
Underlying sink accessor.
| unbuffered_ostreambuf& staticlib::io::unbuffered_ostreambuf< Sink >::operator= | ( | const unbuffered_ostreambuf< Sink > & | ) |
Deleted copy assignment operator.
|
inline |
Move assignment operator.
|
inlineoverrideprotectedvirtual |
Writes count characters to the output sequence from the character array whose first element is pointed to by s.
| s | source buffer |
| count | number of characters to write |
Reimplemented from staticlib::io::detail::unbuffered_streambuf_base.
1.8.1.2