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

ht_mem_file Class Reference

#include <stream.h>

Inheritance diagram for ht_mem_file:

ht_streamfile ht_stream ht_clipboard RegNodeFile List of all members.

Public Member Functions

void init ()
void init (FILEOFS ofs, UINT size, UINT access_mode)
virtual void done ()
virtual int extend (UINT newsize)
virtual UINT get_access_mode ()
virtual const char * get_desc ()
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 FILEOFS tell ()
virtual int truncate (UINT newsize)
virtual UINT write (const void *buf, UINT size)
void * bufptr ()

Protected Member Functions

virtual UINT extendbufsize (UINT bufsize)
virtual UINT shrinkbufsize (UINT bufsize)
void extendbuf ()
void shrinkbuf ()
void resizebuf (UINT newsize)

Protected Attributes

FILEOFS ofs
FILEOFS pos
UINT bufsize
UINT dsize
UINT ibufsize
byte * buf

Member Function Documentation

void * ht_mem_file::bufptr  ) 
 

Definition at line 885 of file stream.cc.

References buf.

Referenced by RegNodeFile::load_node(), and ht_history_entry::store().

void ht_mem_file::done  )  [virtual]
 

Reimplemented from ht_stream.

Reimplemented in ht_clipboard, and RegNodeFile.

Definition at line 879 of file stream.cc.

References buf, and ht_stream::done().

Referenced by RegNodeFile::done(), ht_clipboard::done(), ht_info_viewer::igotonode(), RegNodeFile::load_node(), and ht_history_entry::~ht_history_entry().

int ht_mem_file::extend UINT  newsize  )  [virtual]
 

Reimplemented from ht_streamfile.

Definition at line 890 of file stream.cc.

References bufsize, dsize, extendbuf(), and UINT.

void ht_mem_file::extendbuf  )  [protected]
 

Definition at line 897 of file stream.cc.

References bufsize, extendbufsize(), and resizebuf().

Referenced by extend(), and write().

UINT ht_mem_file::extendbufsize UINT  bufsize  )  [protected, virtual]
 

Definition at line 902 of file stream.cc.

References HTMEMFILE_GROW_FACTOR_DENOM, HTMEMFILE_GROW_FACTOR_NUM, and UINT.

Referenced by extendbuf(), and truncate().

UINT ht_mem_file::get_access_mode  )  [virtual]
 

Reimplemented from ht_stream.

Definition at line 907 of file stream.cc.

References ht_stream::get_access_mode(), and UINT.

const char * ht_mem_file::get_desc  )  [virtual]
 

Reimplemented from ht_stream.

Definition at line 912 of file stream.cc.

UINT ht_mem_file::get_size  )  [virtual]
 

Reimplemented from ht_streamfile.

Definition at line 917 of file stream.cc.

References dsize, and UINT.

Referenced by clipboard_copy(), ht_info_viewer::igotonode(), RegNodeFile::load_node(), pstat(), and ht_history_entry::store().

void ht_mem_file::init FILEOFS  ofs,
UINT  size,
UINT  access_mode
 

Definition at line 865 of file stream.cc.

References buf, bufsize, byte, dsize, FILEOFS, ht_io_exception, ibufsize, ht_stream::init(), malloc(), ofs, pos, set_access_mode(), size, and UINT.

void ht_mem_file::init  ) 
 

Reimplemented from ht_stream.

Reimplemented in ht_clipboard.

Definition at line 860 of file stream.cc.

References FAM_READ, FAM_WRITE, and HTMEMFILE_INITIAL_SIZE.

Referenced by ht_app::handlemsg(), ht_info_viewer::igotonode(), RegNodeFile::init(), Terminal::init(), ht_info_viewer::init(), ht_clipboard::init(), ht_history_entry::load(), RegNodeFile::load_node(), and ht_aviewer::showComments().

void ht_mem_file::pstat pstat_t s  )  [virtual]
 

Reimplemented from ht_streamfile.

Definition at line 922 of file stream.cc.

References pstat_t::caps, get_size(), pstat_size, pstat_t::size, and pstat_t::size_high.

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

Reimplemented from ht_stream.

Definition at line 929 of file stream.cc.

References buf, dsize, pos, size, and UINT.

Referenced by clipboard_paste().

void ht_mem_file::resizebuf UINT  newsize  )  [protected]
 

Definition at line 940 of file stream.cc.

References assert, buf, bufsize, byte, dsize, malloc(), and UINT.

Referenced by extendbuf(), shrinkbuf(), and truncate().

int ht_mem_file::seek FILEOFS  offset  )  [virtual]
 

Reimplemented from ht_streamfile.

Definition at line 953 of file stream.cc.

References FILEOFS, ofs, and pos.

Referenced by clipboard_copy(), clipboard_paste(), RegNodeFile::done(), ht_strinputfield::history_dialog(), RegNodeFile::init(), and set_access_mode().

bool ht_mem_file::set_access_mode UINT  access_mode  )  [virtual]
 

Reimplemented from ht_stream.

Reimplemented in RegNodeFile.

Definition at line 960 of file stream.cc.

References ofs, seek(), ht_stream::set_access_mode(), and UINT.

Referenced by init().

void ht_mem_file::shrinkbuf  )  [protected]
 

Definition at line 974 of file stream.cc.

References bufsize, resizebuf(), and shrinkbufsize().

UINT ht_mem_file::shrinkbufsize UINT  bufsize  )  [protected, virtual]
 

Definition at line 969 of file stream.cc.

References HTMEMFILE_GROW_FACTOR_DENOM, HTMEMFILE_GROW_FACTOR_NUM, and UINT.

Referenced by shrinkbuf().

FILEOFS ht_mem_file::tell  )  [virtual]
 

Reimplemented from ht_streamfile.

Definition at line 979 of file stream.cc.

References FILEOFS, ofs, and pos.

int ht_mem_file::truncate UINT  newsize  )  [virtual]
 

Reimplemented from ht_streamfile.

Definition at line 984 of file stream.cc.

References dsize, extendbufsize(), ibufsize, resizebuf(), and UINT.

Referenced by ht_clipboard::clear().

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

Reimplemented from ht_stream.

Reimplemented in ht_clipboard.

Definition at line 996 of file stream.cc.

References buf, bufsize, byte, dsize, extendbuf(), pos, size, and UINT.

Referenced by ht_history_entry::load(), RegNodeFile::load_node(), ht_aviewer::showComments(), and ht_clipboard::write().


Member Data Documentation

byte* ht_mem_file::buf [protected]
 

Definition at line 373 of file stream.h.

Referenced by bufptr(), done(), init(), read(), resizebuf(), and write().

UINT ht_mem_file::bufsize [protected]
 

Definition at line 372 of file stream.h.

Referenced by extend(), extendbuf(), init(), resizebuf(), shrinkbuf(), and write().

UINT ht_mem_file::dsize [protected]
 

Definition at line 372 of file stream.h.

Referenced by extend(), get_size(), init(), read(), resizebuf(), truncate(), and write().

UINT ht_mem_file::ibufsize [protected]
 

Definition at line 372 of file stream.h.

Referenced by init(), and truncate().

FILEOFS ht_mem_file::ofs [protected]
 

Definition at line 370 of file stream.h.

Referenced by init(), seek(), set_access_mode(), and tell().

FILEOFS ht_mem_file::pos [protected]
 

Definition at line 371 of file stream.h.

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


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