34 #ifndef CARTOBASE_STREAM_FISTREAMBUF_H
35 #define CARTOBASE_STREAM_FISTREAMBUF_H
43 #if defined(CARTO_USE_PRE_ISO_HEADERS)
44 #include <streambuf.h>
58 template <
class Extractor>
74 fistreambuf(std::streambuf* source,
const Extractor& extractor,
130 virtual std::streambuf*
setbuf(
char* p , std::streamsize len);
131 virtual pos_type
seekoff( off_type, std::ios_base::seekdir,
132 std::ios_base::openmode = std::ios_base::in
133 | std::ios_base::out );
145 std::streambuf* _source;
148 Extractor _extractor;
163 template <
class Extractor>
virtual int underflow()
Get the first character of the pending sequence.
virtual ~fistreambuf()
Call sync(), delete the source streambuf if asked to do so in the constructor.
fistreambuf(std::streambuf *source, bool d=false)
Initialize with another streambuf as the source.
Extractor & extractor()
Actual filter.
virtual std::streambuf * setbuf(char *p, std::streamsize len)
pass on to the source
fistreambuf(std::streambuf *source, const Extractor &extractor, bool d=false)
Initialize with another streambuf as the source.
virtual pos_type seekoff(off_type, std::ios_base::seekdir, std::ios_base::openmode=std::ios_base::in|std::ios_base::out)