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

ht_stream Class Reference

#include <stream.h>

Inheritance diagram for ht_stream:

ht_layer_stream ht_streamfile ht_compressed_stream ht_object_stream ht_layer_streamfile ht_mem_file ht_memmap_file ht_null_file ht_stdio_file ht_sys_file ht_win32_file List of all members.

Public Member Functions

virtual ~ht_stream ()
void init ()
virtual void done ()
virtual void copy_to (ht_stream *stream)
virtual UINT get_access_mode ()
virtual int get_error ()
virtual const char * get_desc ()
virtual UINT read (void *buf, UINT size)
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 UINT write (const void *buf, UINT size)

Protected Member Functions

int call_error_func ()

Protected Attributes

stream_error_func_ptr stream_error_func
int error
UINT access_mode

Constructor & Destructor Documentation

ht_stream::~ht_stream  )  [virtual]
 

Definition at line 42 of file stream.cc.


Member Function Documentation

int ht_stream::call_error_func  )  [protected]
 

Definition at line 57 of file stream.cc.

References SERR_FAIL, and stream_error_func.

void ht_stream::copy_to ht_stream stream  )  [virtual]
 

Reimplemented in ht_layer_stream, ht_layer_streamfile, and ht_ltextfile.

Definition at line 63 of file stream.cc.

References buf, byte, malloc(), read(), STREAM_COPYBUF_SIZE, UINT, and write().

Referenced by ht_layer_streamfile::copy_to(), ht_layer_stream::copy_to(), and ht_text_editor::save().

void ht_stream::done  )  [virtual]
 

Reimplemented in ht_compressed_stream, ht_clipboard, ht_info_textfile, ht_streamfile_modifier, ht_reloc_file, ht_object_stream_memmap, ht_layer_stream, ht_object_stream, ht_layer_streamfile, ht_sys_file, ht_stdio_file, ht_file, ht_temp_file, ht_memmap_file, ht_null_file, ht_mem_file, Terminal, ht_ltextfile, and RegNodeFile.

Definition at line 53 of file stream.cc.

Referenced by Terminal::done(), ht_mem_file::done(), ht_null_file::done(), ht_stdio_file::done(), ht_sys_file::done(), ht_layer_streamfile::done(), ht_layer_stream::done(), ht_format_group::done(), RegistryFs::fileClose(), LocalFs::fileClose(), and ht_app::handlemsg().

UINT ht_stream::get_access_mode  )  [virtual]
 

Reimplemented in ht_layer_stream, ht_layer_streamfile, ht_null_file, and ht_mem_file.

Definition at line 75 of file stream.cc.

References access_mode, and UINT.

Referenced by dialog_assemble(), ht_uformat_viewer::edit(), ht_format_group::edit(), ht_stdio_file::extend(), ht_sys_file::extend(), ht_mem_file::get_access_mode(), ht_layer_streamfile::get_access_mode(), ht_layer_stream::get_access_mode(), ht_uformat_viewer::handlemsg(), ht_app::handlemsg(), ht_uformat_viewer::ref_flags(), and ht_file::vcntl().

const char * ht_stream::get_desc  )  [virtual]
 

Reimplemented in ht_layer_stream, ht_layer_streamfile, ht_sys_file, ht_stdio_file, ht_file, ht_temp_file, ht_memmap_file, ht_null_file, and ht_mem_file.

Definition at line 85 of file stream.cc.

References NULL.

Referenced by app_stream_error_func(), file_window_load_fcfg_func(), ht_layer_streamfile::get_desc(), ht_layer_stream::get_desc(), XBEAnalyser::getName(), PEFAnalyser::getName(), PEAnalyser::getName(), NEAnalyser::getName(), MachoAnalyser::getName(), LEAnalyser::getName(), FLTAnalyser::getName(), ElfAnalyser::getName(), CoffAnalyser::getName(), ClassAnalyser::getName(), and ht_app::handlemsg().

int ht_stream::get_error  )  [virtual]
 

Reimplemented in ht_layer_stream, and ht_layer_streamfile.

Definition at line 80 of file stream.cc.

References error.

Referenced by app_stream_error_func(), ht_app::create_window_file_bin(), ht_app::create_window_file_text(), ht_aviewer::exportFileDialog(), RegistryFs::fileClose(), LocalFs::fileClose(), ht_aviewer::generateOutputDialog(), ht_layer_streamfile::get_error(), ht_layer_stream::get_error(), ht_format_viewer::handlemsg(), ht_app::handlemsg(), load_fileconfig(), load_systemconfig(), ht_text_editor::save(), save_fileconfig(), and save_systemconfig().

void ht_stream::init  ) 
 

Reimplemented in ht_clipboard, ht_null_file, and ht_mem_file.

Definition at line 46 of file stream.cc.

References access_mode, error, FAM_NULL, NULL, and stream_error_func.

Referenced by ht_ltextfile::init(), ht_layer_textfile::init(), Terminal::init(), ht_mem_file::init(), ht_null_file::init(), ht_memmap_file::init(), ht_temp_file::init(), ht_file::init(), ht_stdio_file::init(), ht_sys_file::init(), ht_layer_streamfile::init(), ht_object_stream::init(), ht_layer_stream::init(), ht_object_stream_memmap::init(), ht_object_stream_txt::init(), ht_object_stream_bin::init(), ht_reloc_file::init(), ht_streamfile_modifier::init(), ht_info_textfile::init(), ht_win32_file::init(), ht_pef_reloc_file::init(), ht_ne_reloc_file::init(), ht_le_reloc_file::init(), ht_le_page_file::init(), ht_elf32_reloc_file::init(), and ht_compressed_stream::init().

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

Reimplemented in ht_compressed_stream, ht_le_page_file, ht_win32_file, ht_streamfile_modifier, ht_reloc_file, ht_layer_stream, ht_layer_streamfile, ht_sys_file, ht_stdio_file, ht_memmap_file, ht_null_file, ht_mem_file, and ht_ltextfile.

Definition at line 106 of file stream.cc.

References UINT.

Referenced by MachoAnalyser::beginAnalysis(), XBEAnalyser::bufPtr(), PEFAnalyser::bufPtr(), PEAnalyser::bufPtr(), NEAnalyser::bufPtr(), MachoAnalyser::bufPtr(), LEAnalyser::bufPtr(), FLTAnalyser::bufPtr(), ElfAnalyser::bufPtr(), CoffAnalyser::bufPtr(), ClassAnalyser::bufPtr(), ht_le::check_vxd(), copy_to(), ht_le::do_fixups(), ht_elf::fake_undefined_symbols32(), ht_ltextfile::fetch_line_into_memory(), ht_text_sub::find_linelen_backwd(), ht_ltextfile::find_linelen_forwd(), ht_text_sub::find_linelen_forwd(), ht_compressed_stream::flush_uncompressed(), ht_ltextfile::get_char(), ht_object_stream_memmap::getBinary(), ht_object_stream_bin::getBinary(), ht_object_stream_bin::getBool(), ht_object_stream_memmap::getIntHex(), ht_object_stream_bin::getIntHex(), ht_ltextfile::getline(), ht_text_sub::getline(), ht_disasm_sub::getline(), ht_object_stream_memmap::getQWordHex(), ht_object_stream_bin::getQWordHex(), ht_object_stream_memmap::getString(), getstrp(), getstrw(), getstrz(), ht_pef::init(), ht_ne::init(), ht_macho::init(), ht_flt::init(), ht_elf::init(), ElfAnalyser::initInsertFakeSymbols(), ElfAnalyser::initInsertSymbols(), ht_disasm_sub::next_line_id(), ht_format_viewer::pread(), ht_disasm_sub::prev_line_id(), ht_ltextfile::read(), ht_layer_streamfile::read(), ht_layer_stream::read(), ht_le_page_file::read(), ht_le::read_objects(), ht_le::read_pagemap(), ht_ne::relocate(), ht_elf::relocate_section(), ht_ne::relocate_single(), replace_bin_process(), ht_ltextfile::reread(), and search_bin_process().

bool ht_stream::set_access_mode UINT  access_mode  )  [virtual]
 

Reimplemented in ht_streamfile_modifier, ht_layer_stream, ht_layer_streamfile, ht_file, ht_null_file, ht_mem_file, and RegNodeFile.

Definition at line 90 of file stream.cc.

References access_mode, and UINT.

Referenced by ht_stdio_file::extend(), ht_sys_file::extend(), ht_format_viewer::handlemsg(), ht_app::handlemsg(), ht_stdio_file::init(), ht_sys_file::init(), ht_text_editor::save(), ht_mem_file::set_access_mode(), ht_layer_streamfile::set_access_mode(), ht_layer_stream::set_access_mode(), and ht_file::set_access_mode_internal().

void ht_stream::set_error int  error  )  [virtual]
 

Reimplemented in ht_layer_stream, and ht_layer_streamfile.

Definition at line 96 of file stream.cc.

References error.

Referenced by RegNodeFile::done(), RegNodeFile::init(), ht_file::set_access_mode_internal(), ht_layer_streamfile::set_error(), and ht_layer_stream::set_error().

void ht_stream::set_error_func stream_error_func_ptr  stream_error_func  )  [virtual]
 

Reimplemented in ht_layer_stream, and ht_layer_streamfile.

Definition at line 101 of file stream.cc.

References stream_error_func, and stream_error_func_ptr.

Referenced by ht_layer_streamfile::set_error_func(), and ht_layer_stream::set_error_func().

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

Reimplemented in ht_compressed_stream, ht_clipboard, ht_le_page_file, ht_win32_file, ht_streamfile_modifier, ht_reloc_file, ht_layer_stream, ht_layer_streamfile, ht_sys_file, ht_stdio_file, ht_memmap_file, ht_null_file, ht_mem_file, Terminal, and ht_ltextfile.

Definition at line 111 of file stream.cc.

References UINT.

Referenced by blockop_int_process(), blockop_str_process(), ht_ltextfile::copy_to(), copy_to(), ht_compressed_stream::flush_compressed(), generate_html_output(), AnalyserOutput::generateFile(), AnalyserTxtOutput::header(), output_map_file(), parse_info_node(), parse_xref_body(), ht_object_stream_memmap::putBinary(), ht_object_stream_bin::putBinary(), ht_object_stream_bin::putBool(), ht_object_stream_memmap::putIntHex(), ht_object_stream_bin::putIntHex(), ht_object_stream_memmap::putQWordHex(), ht_object_stream_bin::putQWordHex(), ht_object_stream_memmap::putString(), ht_object_stream_bin::putString(), putstrp(), putstrz(), ht_format_viewer::pwrite(), replace_bin_process(), Terminal::write(), ht_layer_streamfile::write(), ht_layer_stream::write(), ht_le_page_file::write(), and write_str().


Member Data Documentation

UINT ht_stream::access_mode [protected]
 

Definition at line 55 of file stream.h.

Referenced by get_access_mode(), init(), and set_access_mode().

int ht_stream::error [protected]
 

Definition at line 54 of file stream.h.

Referenced by get_error(), init(), and set_error().

stream_error_func_ptr ht_stream::stream_error_func [protected]
 

Definition at line 53 of file stream.h.

Referenced by call_error_func(), init(), ht_file::set_access_mode_internal(), and set_error_func().


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