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

ht_sys_file Class Reference

#include <stream.h>

Inheritance diagram for ht_sys_file:

ht_streamfile ht_stream List of all members.

Public Member Functions

void init (int fd, bool own_fd, UINT access_mode)
virtual void done ()
virtual int extend (UINT newsize)
virtual const char * get_desc ()
virtual UINT get_size ()
virtual UINT read (void *buf, UINT size)
virtual int seek (FILEOFS offset)
virtual FILEOFS tell ()
virtual UINT write (const void *buf, UINT size)

Protected Attributes

int fd
bool own_fd
FILEOFS offset

Member Function Documentation

void ht_sys_file::done  )  [virtual]
 

Reimplemented from ht_stream.

Definition at line 416 of file stream.cc.

References ht_stream::done(), fd, and own_fd.

int ht_sys_file::extend UINT  newsize  )  [virtual]
 

Reimplemented from ht_streamfile.

Definition at line 423 of file stream.cc.

References buf, EXTEND_BUFSIZE, FAM_WRITE, ht_stream::get_access_mode(), get_size(), MIN, seek(), ht_stream::set_access_mode(), UINT, and write().

const char * ht_sys_file::get_desc  )  [virtual]
 

Reimplemented from ht_stream.

Definition at line 449 of file stream.cc.

UINT ht_sys_file::get_size  )  [virtual]
 

Reimplemented from ht_streamfile.

Definition at line 454 of file stream.cc.

References fd, tell(), and UINT.

Referenced by extend().

void ht_sys_file::init int  fd,
bool  own_fd,
UINT  access_mode
 

Definition at line 407 of file stream.cc.

References fd, ht_stream::init(), offset, own_fd, ht_stream::set_access_mode(), and UINT.

Referenced by sys_ipc_exec().

UINT ht_sys_file::read void *  buf,
UINT  size
[virtual]
 

Reimplemented from ht_stream.

Definition at line 462 of file stream.cc.

References buf, FAM_READ, fd, offset, size, and UINT.

int ht_sys_file::seek FILEOFS  offset  )  [virtual]
 

Reimplemented from ht_streamfile.

Definition at line 470 of file stream.cc.

References fd, FILEOFS, and offset.

Referenced by extend().

FILEOFS ht_sys_file::tell  )  [virtual]
 

Reimplemented from ht_streamfile.

Definition at line 478 of file stream.cc.

References FILEOFS, and offset.

Referenced by get_size().

UINT ht_sys_file::write const void *  buf,
UINT  size
[virtual]
 

Reimplemented from ht_stream.

Definition at line 483 of file stream.cc.

References buf, FAM_WRITE, fd, offset, size, and UINT.

Referenced by extend().


Member Data Documentation

int ht_sys_file::fd [protected]
 

Definition at line 239 of file stream.h.

Referenced by done(), get_size(), init(), read(), seek(), and write().

FILEOFS ht_sys_file::offset [protected]
 

Definition at line 242 of file stream.h.

Referenced by init(), read(), seek(), tell(), and write().

bool ht_sys_file::own_fd [protected]
 

Definition at line 240 of file stream.h.

Referenced by done(), and init().


The documentation for this class was generated from the following files:
Generated on Fri May 7 21:16:03 2004 by doxygen 1.3.5