34 #ifndef CARTOBASE_STREAM_FOSTREAMBUF_H
35 #define CARTOBASE_STREAM_FOSTREAMBUF_H
43 #if defined(CARTO_USE_PRE_ISO_HEADERS)
44 #include <streambuf.h>
58 template <
class Inserter>
125 virtual std::streambuf*
setbuf(
char* p ,
int len);
137 std::streambuf* _sink;
153 template <
class Inserter>
Inserter & inserter()
Actual filter.
fostreambuf(std::streambuf *sink, bool d=false)
Initialize with another streambuf as the sink.
fostreambuf(std::streambuf *sink, const Inserter &inserter, bool d=false)
Initialize with another streambuf as the sink.
virtual ~fostreambuf()
Call sync(), delete the sink streambuf if asked to do so in the constructor.
virtual std::streambuf * setbuf(char *p, int len)
pass on to the sink
virtual int overflow(int c)