1 #ifndef BOOSTER_STREAMBUF_H 2 #define BOOSTER_STREAMBUF_H 4 #include <booster/config.h> 7 #include <booster/hold_ptr.h> 8 #include <booster/auto_ptr_inc.h> 36 virtual size_t read(
char * ,
size_t )
46 virtual size_t write(
char const * ,
size_t )
58 virtual long long seek(
long long ,pos_type =
set)
70 class BOOSTER_API
streambuf :
public std::streambuf {
82 void device(std::auto_ptr<io_device> d);
101 void set_buffer_size(
size_t n);
107 virtual std::streampos seekoff( std::streamoff off,
108 std::ios_base::seekdir way,
109 std::ios_base::openmode m = std::ios_base::in | std::ios_base::out);
110 virtual std::streampos seekpos( std::streampos pos,
111 std::ios_base::openmode m = std::ios_base::in | std::ios_base::out);
115 virtual int underflow();
116 virtual int pbackfail(
int c = EOF);
120 virtual int overflow(
int c = EOF);
125 std::vector<char> buffer_out_;
126 std::vector<char> buffer_in_;
133 std::auto_ptr<io_device> device_auto_ptr_;
this is an implementation of generic streambuffer
Definition: streambuf.h:70
This class is a base class of generic I/O device that can be used in very simple manner with booster:...
Definition: streambuf.h:19
virtual long long seek(long long, pos_type=set)
Definition: streambuf.h:58
virtual size_t write(char const *, size_t)
Definition: streambuf.h:46
virtual size_t read(char *, size_t)
Definition: streambuf.h:36
Set relatively to end of file (i.e. SEEK_END)
Definition: streambuf.h:27
pos_type
Definition: streambuf.h:24
Set relatively to current position (i.e. SEEK_CUR)
Definition: streambuf.h:26
Booster library namespace. The library that implements Boost Like API in ABI backward compatible way...
Definition: application.h:23