mod_servlet
C++Servlets
|
Implementation of filtered source. More...
#include <io_filter.h>
Public Member Functions | |
basic_filtered_source (basic_source< CharT > *src) | |
Constructs the object with the source from which all the data to be filtered will be acquired. More... | |
std::streamsize | read (CharT *s, std::streamsize n) override |
Extracts at most n characters from the source into the provided s array. More... | |
void | add_filter (basic_in_filter< CharT > *filter, bool delete_after_use=true) |
Adds new filter to the end of the filter chain. More... | |
![]() | |
virtual | ~basic_source () noexcept=default |
Virtual constructor. | |
Implementation of filtered source.
This implementation supports multiple filters arranged as a chain.
CharT | character type |
|
inlineexplicit |
Constructs the object with the source from which all the data to be filtered will be acquired.
When this object is destroyed it will delete the source as well.
src | Last sink to which all the filtered data will be passed |
|
inline |
Adds new filter to the end of the filter chain.
filter | Ponter to filter to add to the filter chain |
delete_after_use | if this flag is true than the filter will be deleted on destruction of this object |
|
inlineoverridevirtual |
Extracts at most n
characters from the source into the provided s
array.
s | Pointer to an array where the extracted characters are stored. |
n | Number of characters to extract. |
Implements servlet::basic_source< CharT >.