#include <FdStream.H>
Public Types | |
typedef std::streambuf::pos_type | stream_pos_t |
typedef std::streambuf::off_type | stream_off_t |
typedef std::ios_base::seekdir | stream_seek_t |
typedef std::ios_base::openmode | stream_mode_t |
Public Member Functions | |
FdStreambuf () | |
FdStreambuf (int fd) | |
FdStreambuf (const char *filename, stream_mode_t mode, mode_t prot=0644, bool create=true, bool replace=true) | |
~FdStreambuf () | |
FdStreambuf * | attach (int fd) |
FdStreambuf * | open (const char *filename, stream_mode_t mode, mode_t prot=0644, bool create=true, bool replace=true) |
bool | is_open () const |
int | fd () const |
FdStreambuf * | close () |
virtual stream_pos_t | seekoff (stream_off_t offset, stream_seek_t way, stream_mode_t mode=(std::ios::in|std::ios::out)) |
stream_pos_t | seekpos (stream_pos_t pos, stream_mode_t mode=(std::ios::in|std::ios::out)) |
Protected Member Functions | |
bool | get_pos_to_fd_pos () |
int | underflow () |
std::streamsize | xsgetn (char *s, std::streamsize n) |
int | overflow (int c=EOF) |
std::streamsize | xsputn (const char *s, std::streamsize n) |
int | sync () |
Protected Attributes | |
int | _fd |
bool | should_close |
char * | buffer |
unsigned int | buf_size |
stream_mode_t | mode |
|
Definition at line 43 of file FdStream.H. |
|
Definition at line 41 of file FdStream.H. |
|
Definition at line 40 of file FdStream.H. |
|
Definition at line 42 of file FdStream.H. |
|
Definition at line 63 of file FdStream.H. |
|
|
|
|
|
|
|
Referenced by FS::FdStreamBase::attach(). |
|
Referenced by FS::FdStreamBase::close(), FS::FdStreambuf::close(), and FS::FdStreambuf::~FdStreambuf(). |
|
Definition at line 79 of file FdStream.H. References _fd, and is_open(). Referenced by FS::FdStreamBase::fd(). |
|
Referenced by FS::FdStreambuf::overflow(), and FS::FdStreambuf::seekoff(). |
|
Definition at line 78 of file FdStream.H. References _fd. Referenced by fd(), FS::FdStreambuf::attach(), FS::FdStreambuf::close(), FS::FdStreambuf::overflow(), FS::FdStreambuf::underflow(), and FS::FdStreamBase::is_open(). |
|
Referenced by FS::FdStreambuf::open(), and FS::FdStreamBase::open(). |
|
Referenced by FS::FdStreambuf::seekoff(), FS::FdStreambuf::sync(), FS::FdStreambuf::underflow(), and FS::FdStreambuf::xsputn(). |
|
Referenced by FS::FdStreambuf::seekpos(). |
|
|
|
Referenced by FS::FdStreambuf::close(). |
|
|
|
|
|
|
|
Definition at line 46 of file FdStream.H. Referenced by fd(), FS::FdStreambuf::attach(), FS::FdStreambuf::close(), FS::FdStreambuf::open(), FS::FdStreambuf::overflow(), FS::FdStreambuf::underflow(), FS::FdStreambuf::xsgetn(), FS::FdStreambuf::xsputn(), and is_open(). |
|
Definition at line 54 of file FdStream.H. Referenced by FS::FdStreambuf::overflow(), FS::FdStreambuf::underflow(), and FS::FdStreambuf::xsputn(). |
|
Definition at line 53 of file FdStream.H. Referenced by FS::FdStreambuf::overflow(), FS::FdStreambuf::underflow(), FS::FdStreambuf::xsputn(), and FS::FdStreambuf::~FdStreambuf(). |
|
Definition at line 55 of file FdStream.H. Referenced by FS::FdStreambuf::attach(), FS::FdStreambuf::overflow(), and FS::FdStreambuf::underflow(). |
|
Definition at line 50 of file FdStream.H. Referenced by FS::FdStreambuf::attach(), FS::FdStreambuf::close(), and FS::FdStreambuf::open(). |