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

ht_file Class Reference

#include <stream.h>

Inheritance diagram for ht_file:

ht_stdio_file ht_streamfile ht_stream List of all members.

Public Member Functions

void init (const char *filename, UINT access_mode, UINT open_mode)
virtual void done ()
virtual const char * get_desc ()
virtual const char * get_filename ()
virtual void pstat (pstat_t *s)
virtual bool set_access_mode (UINT access_mode)
virtual int truncate (UINT newsize)
virtual int vcntl (UINT cmd, va_list vargs)

Protected Member Functions

bool set_access_mode_internal (UINT access_mode)

Protected Attributes

char * filename
UINT open_mode
FILEOFS offset

Member Function Documentation

void ht_file::done  )  [virtual]
 

Reimplemented from ht_stdio_file.

Definition at line 592 of file stream.cc.

References ht_stdio_file::done(), and filename.

Referenced by ht_aviewer::exportFileDialog(), ht_aviewer::generateOutputDialog(), ht_app::handlemsg(), load_fileconfig(), load_systemconfig(), save_fileconfig(), and save_systemconfig().

const char * ht_file::get_desc  )  [virtual]
 

Reimplemented from ht_stdio_file.

Definition at line 598 of file stream.cc.

References filename.

Referenced by ht_app::handlemsg().

const char * ht_file::get_filename  )  [virtual]
 

Reimplemented from ht_streamfile.

Definition at line 603 of file stream.cc.

References filename.

Referenced by ht_app::handlemsg(), and set_access_mode().

void ht_file::init const char *  filename,
UINT  access_mode,
UINT  open_mode
 

Definition at line 584 of file stream.cc.

References filename, FOM_EXISTS, ht_stream::init(), NULL, open_mode, and UINT.

Referenced by ht_app::create_window_file_bin(), ht_app::create_window_file_text(), ht_aviewer::exportFileDialog(), ht_aviewer::generateOutputDialog(), ht_app::handlemsg(), load_fileconfig(), load_systemconfig(), save_fileconfig(), and save_systemconfig().

void ht_file::pstat pstat_t s  )  [virtual]
 

Reimplemented from ht_streamfile.

Definition at line 608 of file stream.cc.

References filename, and sys_pstat().

bool ht_file::set_access_mode UINT  access_mode  )  [virtual]
 

Reimplemented from ht_stream.

Definition at line 613 of file stream.cc.

References get_filename(), ht_io_exception, set_access_mode_internal(), and UINT.

Referenced by ht_app::handlemsg(), truncate(), and vcntl().

bool ht_file::set_access_mode_internal UINT  access_mode  )  [protected]
 

Definition at line 622 of file stream.cc.

References pstat_t::caps, FAM_NULL, FAM_READ, FAM_WRITE, filename, FOM_APPEND, FOM_CREATE, HT_S_ISBLK, HT_S_ISDIR, HT_S_ISREG, pstat_t::mode, NULL, open_mode, pstat_mode_type, SERR_RETRY, ht_stream::set_access_mode(), ht_stream::set_error(), STERR_SYSTEM, ht_stream::stream_error_func, sys_pstat(), and UINT.

Referenced by set_access_mode().

int ht_file::truncate UINT  newsize  )  [virtual]
 

Reimplemented from ht_streamfile.

Definition at line 674 of file stream.cc.

References FAM_NULL, filename, set_access_mode(), sys_truncate(), and UINT.

int ht_file::vcntl UINT  cmd,
va_list  vargs
[virtual]
 

Reimplemented from ht_streamfile.

Definition at line 688 of file stream.cc.

References FAM_NULL, FCNTL_FLUSH_STAT, ht_stream::get_access_mode(), set_access_mode(), UINT, and ht_streamfile::vcntl().


Member Data Documentation

char* ht_file::filename [protected]
 

Definition at line 287 of file stream.h.

Referenced by done(), get_desc(), get_filename(), init(), pstat(), set_access_mode_internal(), and truncate().

FILEOFS ht_file::offset [protected]
 

Reimplemented from ht_stdio_file.

Definition at line 290 of file stream.h.

UINT ht_file::open_mode [protected]
 

Definition at line 288 of file stream.h.

Referenced by init(), and set_access_mode_internal().


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