Implementation of sink which will pass all the data to a std::basic_ostream
.
More...
#include <io_filter.h>
|
| basic_stream_sink (std::basic_ostream< CharT > &out) |
| Constructs new object with a given std::basic_ostream to write data to. More...
|
|
std::streamsize | write (CharT *s, std::streamsize n) override |
| Writes the first n characters of array s into the sink. More...
|
|
virtual | ~basic_sink () noexcept=default |
| Virtual constructor.
|
|
virtual void | flush () |
| Flush sink if it can be flushed. More...
|
|
template<typename CharT>
class servlet::basic_stream_sink< CharT >
Implementation of sink which will pass all the data to a std::basic_ostream
.
- Template Parameters
-
- See Also
- basic_sink
template<typename CharT >
Constructs new object with a given std::basic_ostream
to write data to.
- Parameters
-
out | out stream to send the data to. |
template<typename CharT >
Writes the first n
characters of array s
into the sink.
- Parameters
-
s | Pointer to an array of at least n elements |
n | Number of characters to write. |
- Returns
- Number of successefully written characters
Implements servlet::basic_sink< CharT >.
The documentation for this class was generated from the following file: