Filtering input stream.
More...
#include <cartobase/stream/fistreambuf.h>
|
|
| | fistreambuf (std::streambuf *source, const Extractor &extractor, bool d=false) |
| | Initialize with another streambuf as the source.
|
| |
| | fistreambuf (std::streambuf *source, bool d=false) |
| | Initialize with another streambuf as the source.
|
| |
| virtual | ~fistreambuf () |
| | Call sync(), delete the source streambuf if asked to do so in the constructor.
|
| |
|
| Extractor & | extractor () |
| | Actual filter.
|
| |
|
|
| virtual int | underflow () |
| | Get the first character of the pending sequence.
|
| |
|
| virtual int | sync () |
| |
| virtual std::streambuf * | setbuf (char *p, std::streamsize len) |
| | pass on to the source
|
| |
| 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>
| carto::fistreambuf< Extractor >::fistreambuf |
( |
std::streambuf * | source, |
|
|
const Extractor & | extractor, |
|
|
bool | d = false ) |
Initialize with another streambuf as the source.
- Parameters
-
| source | source streambuf |
| extractor | filter |
| d | delete the source streambuf on exit |
References extractor().
◆ 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>
◆ 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: