mod_servlet
C++Servlets
 All Classes Files Functions Variables Typedefs Macros Pages
servlet::basic_in_filter< CharT > Struct Template Referenceabstract

Abstract interface for input filter. More...

#include <io_filter.h>

Public Member Functions

virtual ~basic_in_filter () noexcept=default
 Virtual destructor.
 
virtual std::streamsize read (CharT *s, std::streamsize n, basic_source< CharT > &src)=0
 Extracts the characters from the source, filters the input and copies at most n characters to the provided s array. More...
 

Detailed Description

template<typename CharT>
struct servlet::basic_in_filter< CharT >

Abstract interface for input filter.

Template Parameters
CharTcharacter type

Member Function Documentation

template<typename CharT>
virtual std::streamsize servlet::basic_in_filter< CharT >::read ( CharT *  s,
std::streamsize  n,
basic_source< CharT > &  src 
)
pure virtual

Extracts the characters from the source, filters the input and copies at most n characters to the provided s array.

Parameters
sPointer to an array of at least n elements to which output of this filter will be copied.
nNumber of characters to copy to the output array s
srcSource from which filter acquires the data.
Returns
Number of actually copied characters

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