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

ht_layer_streamfile Class Reference

#include <stream.h>

Inheritance diagram for ht_layer_streamfile:

ht_streamfile ht_stream ht_le_page_file ht_reloc_file ht_streamfile_modifier ht_textfile ht_elf32_reloc_file ht_le_reloc_file ht_ne_reloc_file ht_pef_reloc_file ht_layer_textfile ht_ltextfile ht_info_textfile Terminal List of all members.

Public Member Functions

void init (ht_streamfile *streamfile, bool own_streamfile)
virtual void done ()
virtual void copy_to (ht_stream *stream)
virtual int extend (UINT newsize)
virtual UINT get_access_mode ()
virtual int get_error ()
virtual const char * get_desc ()
virtual const char * get_filename ()
virtual ht_streamfileget_layered ()
virtual UINT get_size ()
virtual void pstat (pstat_t *s)
virtual UINT read (void *buf, UINT size)
virtual int seek (FILEOFS offset)
virtual bool set_access_mode (UINT access_mode)
virtual void set_error (int error)
virtual void set_error_func (stream_error_func_ptr stream_error_func)
virtual void set_layered (ht_streamfile *streamfile)
void set_streamfile_ownership (bool own)
virtual FILEOFS tell ()
virtual int truncate (UINT newsize)
virtual int vcntl (UINT cmd, va_list vargs)
virtual UINT write (const void *buf, UINT size)

Protected Attributes

ht_streamfilestreamfile
bool own_streamfile

Member Function Documentation

void ht_layer_streamfile::copy_to ht_stream stream  )  [virtual]
 

Reimplemented from ht_stream.

Reimplemented in ht_ltextfile.

Definition at line 301 of file stream.cc.

References ht_stream::copy_to().

Referenced by ht_app::handlemsg(), and ht_text_editor::save().

void ht_layer_streamfile::done  )  [virtual]
 

Reimplemented from ht_stream.

Reimplemented in ht_info_textfile, ht_streamfile_modifier, ht_reloc_file, Terminal, and ht_ltextfile.

Definition at line 292 of file stream.cc.

References ht_stream::done(), own_streamfile, and streamfile.

Referenced by ht_ltextfile::done(), ht_text_viewer::done(), ht_reloc_file::done(), ht_streamfile_modifier::done(), ht_le::done(), and ht_text_viewer::set_textfile().

int ht_layer_streamfile::extend UINT  newsize  )  [virtual]
 

Reimplemented from ht_streamfile.

Reimplemented in ht_streamfile_modifier, and ht_ltextfile.

Definition at line 306 of file stream.cc.

References ht_streamfile::extend(), streamfile, and UINT.

Referenced by ht_streamfile_modifier::mod_pages_flush().

UINT ht_layer_streamfile::get_access_mode  )  [virtual]
 

Reimplemented from ht_stream.

Definition at line 311 of file stream.cc.

References ht_stream::get_access_mode(), streamfile, and UINT.

Referenced by ht_streamfile_modifier::init(), and ht_streamfile_modifier::set_access_mode().

const char * ht_layer_streamfile::get_desc  )  [virtual]
 

Reimplemented from ht_stream.

Definition at line 327 of file stream.cc.

References ht_stream::get_desc(), and streamfile.

Referenced by ht_text_viewer::clipboard_copy_cmd().

int ht_layer_streamfile::get_error  )  [virtual]
 

Reimplemented from ht_stream.

Definition at line 316 of file stream.cc.

References ht_stream::get_error(), and streamfile.

Referenced by ht_ltextfile::init().

const char * ht_layer_streamfile::get_filename  )  [virtual]
 

Reimplemented from ht_streamfile.

Definition at line 332 of file stream.cc.

References ht_streamfile::get_filename(), and streamfile.

Referenced by ht_text_editor::func(), and ht_text_editor::save().

ht_streamfile * ht_layer_streamfile::get_layered  )  [virtual]
 

Reimplemented from ht_streamfile.

Definition at line 321 of file stream.cc.

References ht_streamfile::get_layered(), and streamfile.

Referenced by ht_app::handlemsg(), and ht_text_editor::save().

UINT ht_layer_streamfile::get_size  )  [virtual]
 

Reimplemented from ht_streamfile.

Reimplemented in ht_streamfile_modifier, and ht_ltextfile.

Definition at line 337 of file stream.cc.

References ht_streamfile::get_size(), streamfile, and UINT.

Referenced by ht_streamfile_modifier::get_size(), ht_streamfile_modifier::mod_page_create(), ht_streamfile_modifier::mod_pages_create(), and ht_streamfile_modifier::mod_pages_flush().

void ht_layer_streamfile::init ht_streamfile streamfile,
bool  own_streamfile
 

Reimplemented in ht_reloc_file.

Definition at line 285 of file stream.cc.

References ht_stream::init(), own_streamfile, and streamfile.

void ht_layer_streamfile::pstat pstat_t s  )  [virtual]
 

Reimplemented from ht_streamfile.

Reimplemented in ht_ltextfile.

Definition at line 342 of file stream.cc.

References ht_streamfile::pstat(), and streamfile.

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

Reimplemented from ht_stream.

Reimplemented in ht_le_page_file, ht_streamfile_modifier, ht_reloc_file, and ht_ltextfile.

Definition at line 347 of file stream.cc.

References buf, ht_stream::read(), size, streamfile, and UINT.

Referenced by ht_streamfile_modifier::cleardirtybyte(), delete_text_block(), ht_streamfile_modifier::isdirtybit(), ht_streamfile_modifier::isdirtybyte(), ht_streamfile_modifier::mod_page_create(), ht_reloc_file::read(), ht_streamfile_modifier::read(), and ht_streamfile_modifier::readbyte().

int ht_layer_streamfile::seek FILEOFS  offset  )  [virtual]
 

Reimplemented from ht_streamfile.

Reimplemented in ht_le_page_file, ht_streamfile_modifier, and ht_ltextfile.

Definition at line 352 of file stream.cc.

References FILEOFS, ht_streamfile::seek(), and streamfile.

Referenced by ht_le::check_vxd(), ht_streamfile_modifier::cleardirtybyte(), delete_text_block(), ht_app::handlemsg(), insert_text_block(), ht_streamfile_modifier::isdirtybit(), ht_streamfile_modifier::isdirtybyte(), ht_streamfile_modifier::mod_page_create(), ht_streamfile_modifier::mod_page_flush(), ht_streamfile_modifier::read(), ht_streamfile_modifier::readbyte(), ht_text_editor::save(), and ht_streamfile_modifier::seek().

bool ht_layer_streamfile::set_access_mode UINT  access_mode  )  [virtual]
 

Reimplemented from ht_stream.

Reimplemented in ht_streamfile_modifier.

Definition at line 357 of file stream.cc.

References ht_stream::set_access_mode(), streamfile, and UINT.

Referenced by ht_streamfile_modifier::set_access_mode().

void ht_layer_streamfile::set_error int  error  )  [virtual]
 

Reimplemented from ht_stream.

Definition at line 362 of file stream.cc.

References ht_stream::set_error(), and streamfile.

Referenced by ht_streamfile_modifier::read(), and ht_streamfile_modifier::write().

void ht_layer_streamfile::set_error_func stream_error_func_ptr  stream_error_func  )  [virtual]
 

Reimplemented from ht_stream.

Definition at line 367 of file stream.cc.

References ht_stream::set_error_func(), stream_error_func_ptr, and streamfile.

void ht_layer_streamfile::set_layered ht_streamfile streamfile  )  [virtual]
 

Reimplemented from ht_streamfile.

Reimplemented in ht_ltextfile.

Definition at line 372 of file stream.cc.

References ht_streamfile::get_layered(), ht_streamfile::set_layered(), and streamfile.

Referenced by ht_app::handlemsg(), ht_ltextfile::set_layered(), and ht_ltextfile::set_layered_assume().

void ht_layer_streamfile::set_streamfile_ownership bool  own  ) 
 

Definition at line 378 of file stream.cc.

References own_streamfile.

FILEOFS ht_layer_streamfile::tell  )  [virtual]
 

Reimplemented from ht_streamfile.

Reimplemented in ht_le_page_file, ht_streamfile_modifier, and ht_ltextfile.

Definition at line 383 of file stream.cc.

References FILEOFS, streamfile, and ht_streamfile::tell().

Referenced by ht_reloc_file::read(), ht_streamfile_modifier::tell(), and ht_reloc_file::write().

int ht_layer_streamfile::truncate UINT  newsize  )  [virtual]
 

Reimplemented from ht_streamfile.

Reimplemented in ht_streamfile_modifier, and ht_ltextfile.

Definition at line 388 of file stream.cc.

References streamfile, ht_streamfile::truncate(), and UINT.

Referenced by ht_streamfile_modifier::mod_pages_flush().

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

Reimplemented from ht_streamfile.

Reimplemented in ht_le_page_file, ht_streamfile_modifier, ht_reloc_file, and ht_ltextfile.

Definition at line 393 of file stream.cc.

References streamfile, UINT, and ht_streamfile::vcntl().

Referenced by ht_ltextfile::vcntl(), ht_reloc_file::vcntl(), ht_streamfile_modifier::vcntl(), and ht_le_page_file::vcntl().

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

Reimplemented from ht_stream.

Reimplemented in ht_le_page_file, ht_streamfile_modifier, ht_reloc_file, Terminal, and ht_ltextfile.

Definition at line 398 of file stream.cc.

References buf, size, streamfile, UINT, and ht_stream::write().

Referenced by insert_text_block(), ht_streamfile_modifier::mod_page_flush(), ht_reloc_file::write(), and ht_streamfile_modifier::write().


Member Data Documentation

bool ht_layer_streamfile::own_streamfile [protected]
 

Definition at line 206 of file stream.h.

Referenced by done(), init(), and set_streamfile_ownership().

ht_streamfile* ht_layer_streamfile::streamfile [protected]
 

Definition at line 205 of file stream.h.

Referenced by done(), extend(), get_access_mode(), get_desc(), get_error(), get_filename(), get_layered(), get_size(), init(), pstat(), read(), seek(), set_access_mode(), set_error(), set_error_func(), set_layered(), tell(), truncate(), vcntl(), and write().


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