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

ht_stdio_file Class Reference

#include <stream.h>

Inheritance diagram for ht_stdio_file:

ht_streamfile ht_stream ht_file ht_temp_file List of all members.

Public Member Functions

void init (FILE *file, bool own_file, 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

FILE * file
bool own_file
FILEOFS offset

Member Function Documentation

void ht_stdio_file::done  )  [virtual]
 

Reimplemented from ht_stream.

Reimplemented in ht_file, and ht_temp_file.

Definition at line 504 of file stream.cc.

References ht_stream::done(), file, and own_file.

Referenced by ht_temp_file::done(), and ht_file::done().

int ht_stdio_file::extend UINT  newsize  )  [virtual]
 

Reimplemented from ht_streamfile.

Definition at line 511 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_stdio_file::get_desc  )  [virtual]
 

Reimplemented from ht_stream.

Reimplemented in ht_file, and ht_temp_file.

Definition at line 537 of file stream.cc.

UINT ht_stdio_file::get_size  )  [virtual]
 

Reimplemented from ht_streamfile.

Definition at line 542 of file stream.cc.

References file, tell(), and UINT.

Referenced by extend(), ht_app::handlemsg(), and ht_temp_file::pstat().

void ht_stdio_file::init FILE *  file,
bool  own_file,
UINT  access_mode
 

Definition at line 495 of file stream.cc.

References file, ht_stream::init(), offset, own_file, ht_stream::set_access_mode(), and UINT.

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

Reimplemented from ht_stream.

Definition at line 551 of file stream.cc.

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

Referenced by load_fileconfig(), and load_systemconfig().

int ht_stdio_file::seek FILEOFS  offset  )  [virtual]
 

Reimplemented from ht_streamfile.

Definition at line 559 of file stream.cc.

References file, FILEOFS, and offset.

Referenced by extend().

FILEOFS ht_stdio_file::tell  )  [virtual]
 

Reimplemented from ht_streamfile.

Definition at line 567 of file stream.cc.

References FILEOFS, and offset.

Referenced by get_size().

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

Reimplemented from ht_stream.

Definition at line 572 of file stream.cc.

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

Referenced by extend(), save_fileconfig(), and save_systemconfig().


Member Data Documentation

FILE* ht_stdio_file::file [protected]
 

Definition at line 263 of file stream.h.

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

FILEOFS ht_stdio_file::offset [protected]
 

Reimplemented in ht_file.

Definition at line 266 of file stream.h.

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

bool ht_stdio_file::own_file [protected]
 

Definition at line 264 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