mod_servlet
C++Servlets
 All Classes Files Functions Variables Typedefs Macros Pages
servlet::basic_stream_sink< CharT > Class Template Reference

Implementation of sink which will pass all the data to a std::basic_ostream. More...

#include <io_filter.h>

Inheritance diagram for servlet::basic_stream_sink< CharT >:
servlet::basic_sink< CharT >

Public Member Functions

 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...
 
- Public Member Functions inherited from servlet::basic_sink< CharT >
virtual ~basic_sink () noexcept=default
 Virtual constructor.
 
virtual void flush ()
 Flush sink if it can be flushed. More...
 

Detailed Description

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
CharTcharacter type
See Also
basic_sink

Constructor & Destructor Documentation

template<typename CharT >
servlet::basic_stream_sink< CharT >::basic_stream_sink ( std::basic_ostream< CharT > &  out)
inline

Constructs new object with a given std::basic_ostream to write data to.

Parameters
outout stream to send the data to.

Member Function Documentation

template<typename CharT >
std::streamsize servlet::basic_stream_sink< CharT >::write ( CharT *  s,
std::streamsize  n 
)
inlineoverridevirtual

Writes the first n characters of array s into the sink.

Parameters
sPointer to an array of at least n elements
nNumber 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: