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

Implementation of source which will acquire all the data from a std::basic_istream. More...

#include <io_filter.h>

Inheritance diagram for servlet::basic_stream_source< CharT >:
servlet::basic_source< CharT >

Public Member Functions

 basic_stream_source (std::basic_istream< CharT > &in)
 Constructs new object with a given std::basic_istream to read data from. More...
 
std::streamsize read (CharT *s, std::streamsize n) override
 Extracts at most n characters from the source into the provided s array. More...
 
- Public Member Functions inherited from servlet::basic_source< CharT >
virtual ~basic_source () noexcept=default
 Virtual constructor.
 

Detailed Description

template<typename CharT>
class servlet::basic_stream_source< CharT >

Implementation of source which will acquire all the data from a std::basic_istream.

Template Parameters
CharTcharacter type
See Also
basic_sink

Constructor & Destructor Documentation

template<typename CharT >
servlet::basic_stream_source< CharT >::basic_stream_source ( std::basic_istream< CharT > &  in)
inline

Constructs new object with a given std::basic_istream to read data from.

Parameters
ininput stream to read the data from.

Member Function Documentation

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

Extracts at most n characters from the source into the provided s array.

Parameters
sPointer to an array where the extracted characters are stored.
nNumber of characters to extract.
Returns
Number of characters actually extracted.

Implements servlet::basic_source< CharT >.


The documentation for this class was generated from the following file: