Filtering input stream.
More...
#include <cartobase/stream/fistreambuf.h>
|
|
virtual int | underflow () |
| Get the first character of the pending sequence. More...
|
|
|
virtual int | sync () |
|
virtual std::streambuf * | setbuf (char *p, std::streamsize len) |
| pass on to the source More...
|
|
virtual pos_type | seekoff (off_type, std::ios_base::seekdir, std::ios_base::openmode=std::ios_base::in|std::ios_base::out) |
|
template<class Extractor>
class carto::fistreambuf< Extractor >
Filtering input stream.
Definition at line 59 of file fistreambuf.h.
◆ fistreambuf() [1/2]
template<class Extractor>
Initialize with another streambuf as the source.
- Parameters
-
source | source streambuf |
extractor | filter |
d | delete the source streambuf on exit |
◆ fistreambuf() [2/2]
template<class Extractor>
Initialize with another streambuf as the source.
- Parameters
-
source | source streambuf |
d | delete the source streambuf on exit |
◆ ~fistreambuf()
template<class Extractor>
Call sync(), delete the source streambuf if asked to do so in the constructor.
◆ extractor()
template<class Extractor >
Actual filter.
- Returns
- the actual filter
Definition at line 166 of file fistreambuf.h.
◆ seekoff()
template<class Extractor>
virtual pos_type carto::fistreambuf< Extractor >::seekoff |
( |
off_type |
, |
|
|
std::ios_base::seekdir |
, |
|
|
std::ios_base::openmode |
= std::ios_base::in|std::ios_base::out |
|
) |
| |
|
protectedvirtual |
◆ setbuf()
template<class Extractor>
virtual std::streambuf* carto::fistreambuf< Extractor >::setbuf |
( |
char * |
p, |
|
|
std::streamsize |
len |
|
) |
| |
|
protectedvirtual |
pass on to the source
- Parameters
-
- Returns
- this
◆ sync()
template<class Extractor>
◆ underflow()
template<class Extractor>
Get the first character of the pending sequence.
If the pending sequence is null then the function returns EOF to indicate failure.
- Returns
- the first character of the pending sequence
The documentation for this class was generated from the following file: