Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

FdStream.C File Reference

#include <assert.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <Basics.H>
#include "FdStream.H"

Go to the source code of this file.

Functions

bool FS::FdStreambuf::get_pos_to_fd_pos ()
 FS::FdStreambuf::FdStreambuf (int fd)
 FS::FdStreambuf::FdStreambuf (const char *filename, stream_mode_t mode, mode_t prot, bool create, bool replace)
 FS::FdStreambuf::~FdStreambuf ()
FS::FdStreambufFS::FdStreambuf::attach (int fd)
FS::FdStreambufFS::FdStreambuf::open (const char *filename, stream_mode_t mode, mode_t prot, bool create, bool replace)
FS::FdStreambufFS::FdStreambuf::close ()
FS::FdStreambuf::stream_pos_t FS::FdStreambuf::seekoff (stream_off_t offset, stream_seek_t way, stream_mode_t mode)
FS::FdStreambuf::stream_pos_t FS::FdStreambuf::seekpos (stream_pos_t pos, stream_mode_t mode)
int FS::FdStreambuf::underflow ()
std::streamsize FS::FdStreambuf::xsgetn (char *s, std::streamsize n)
int FS::FdStreambuf::overflow (int c)
std::streamsize FS::FdStreambuf::xsputn (const char *s, std::streamsize n)
int FS::FdStreambuf::sync ()


Function Documentation

FS::FdStreambuf* FS::FdStreambuf::attach int  fd  ) 
 

Definition at line 85 of file FdStream.C.

References FS::FdStreambuf::_fd, FS::FdStreambuf::is_open(), FS::FdStreambuf::mode, and FS::FdStreambuf::should_close.

FS::FdStreambuf* FS::FdStreambuf::close  ) 
 

Definition at line 163 of file FdStream.C.

References FS::FdStreambuf::_fd, FS::FdStreambuf::close(), FS::FdStreambuf::is_open(), FS::FdStreambuf::should_close, and FS::FdStreambuf::sync().

FS::FdStreambuf::FdStreambuf const char *  filename,
stream_mode_t  mode,
mode_t  prot,
bool  create,
bool  replace
 

Definition at line 66 of file FdStream.C.

References FdCache::open().

FS::FdStreambuf::FdStreambuf int  fd  ) 
 

Definition at line 60 of file FdStream.C.

bool FS::FdStreambuf::get_pos_to_fd_pos  ) 
 

Definition at line 35 of file FdStream.C.

FS::FdStreambuf* FS::FdStreambuf::open const char *  filename,
stream_mode_t  mode,
mode_t  prot,
bool  create,
bool  replace
 

Definition at line 108 of file FdStream.C.

References FS::FdStreambuf::_fd, FS::FdStreambuf::open(), and FS::FdStreambuf::should_close.

int FS::FdStreambuf::overflow int  c  ) 
 

Definition at line 320 of file FdStream.C.

References FS::FdStreambuf::_fd, FS::FdStreambuf::buf_size, FS::FdStreambuf::buffer, FS::FdStreambuf::get_pos_to_fd_pos(), FS::FdStreambuf::is_open(), FS::FdStreambuf::mode, and NEW_PTRFREE_ARRAY.

FS::FdStreambuf::stream_pos_t FS::FdStreambuf::seekoff stream_off_t  offset,
stream_seek_t  way,
stream_mode_t  mode
 

Definition at line 191 of file FdStream.C.

References FS::FdStreambuf::get_pos_to_fd_pos(), and FS::FdStreambuf::overflow().

FS::FdStreambuf::stream_pos_t FS::FdStreambuf::seekpos stream_pos_t  pos,
stream_mode_t  mode
 

Definition at line 231 of file FdStream.C.

References FS::FdStreambuf::seekoff().

int FS::FdStreambuf::sync  ) 
 

Definition at line 449 of file FdStream.C.

References FS::FdStreambuf::overflow().

int FS::FdStreambuf::underflow  ) 
 

Definition at line 240 of file FdStream.C.

References FS::FdStreambuf::_fd, FS::FdStreambuf::buf_size, FS::FdStreambuf::buffer, FS::FdStreambuf::is_open(), FS::FdStreambuf::mode, NEW_PTRFREE_ARRAY, and FS::FdStreambuf::overflow().

std::streamsize FS::FdStreambuf::xsgetn char *  s,
std::streamsize  n
 

Definition at line 284 of file FdStream.C.

References FS::FdStreambuf::_fd.

std::streamsize FS::FdStreambuf::xsputn const char *  s,
std::streamsize  n
 

Definition at line 389 of file FdStream.C.

References FS::FdStreambuf::_fd, FS::FdStreambuf::buf_size, FS::FdStreambuf::buffer, NEW_PTRFREE_ARRAY, and FS::FdStreambuf::overflow().

FS::FdStreambuf::~FdStreambuf  ) 
 

Definition at line 74 of file FdStream.C.

References FS::FdStreambuf::buffer, and FS::FdStreambuf::close().


Generated on Mon May 8 00:49:00 2006 for Vesta by  doxygen 1.4.2