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

ht_hex_sub Class Reference

#include <htformat.h>

Inheritance diagram for ht_hex_sub:

ht_linear_sub ht_sub Object ht_hex_file_sub List of all members.

Public Member Functions

void init (ht_streamfile *file, FILEOFS ofs, dword size, UINT line_length, UINT uid, dword vaddrinc=0)
virtual void done ()
int get_line_length ()
void set_line_length (int line_length)
virtual bool convert_ofs_to_id (const FILEOFS offset, LINE_ID *line_id)
virtual bool convert_id_to_ofs (const LINE_ID line_id, FILEOFS *offset)
virtual void first_line_id (LINE_ID *line_id)
virtual bool getline (char *line, const LINE_ID line_id)
virtual void handlemsg (htmsg *msg)
virtual void last_line_id (LINE_ID *line_id)
virtual int next_line_id (LINE_ID *line_id, int n)
virtual int prev_line_id (LINE_ID *line_id, int n)

Protected Attributes

dword vaddrinc
dword balign
dword line_length
UINT uid

Member Function Documentation

bool ht_hex_sub::convert_id_to_ofs const LINE_ID  line_id,
FILEOFS offset
[virtual]
 

Reimplemented from ht_sub.

Definition at line 4258 of file htformat.cc.

References FILEOFS, and LINE_ID::id1.

bool ht_hex_sub::convert_ofs_to_id const FILEOFS  offset,
LINE_ID line_id
[virtual]
 

Reimplemented from ht_sub.

Definition at line 4247 of file htformat.cc.

References balign, clear_line_id(), FILEOFS, LINE_ID::id1, LINE_ID::id2, line_length, and uid.

void ht_hex_sub::done  )  [virtual]
 

Reimplemented from ht_linear_sub.

Definition at line 4227 of file htformat.cc.

References ht_linear_sub::done().

void ht_hex_sub::first_line_id LINE_ID line_id  )  [virtual]
 

Reimplemented from ht_sub.

Definition at line 4309 of file htformat.cc.

References clear_line_id(), LINE_ID::id1, LINE_ID::id2, and uid.

int ht_hex_sub::get_line_length  ) 
 

Definition at line 4232 of file htformat.cc.

References line_length.

Referenced by ht_hex_viewer::get_vscrollbar_pos(), ht_hex_viewer::handlemsg(), ht_hex_viewer::offset_to_pos(), and ht_hex_viewer::qword_to_pos().

bool ht_hex_sub::getline char *  line,
const LINE_ID  line_id
[virtual]
 

Reimplemented from ht_sub.

Definition at line 4264 of file htformat.cc.

References dword, LINE_ID::id1, LINE_ID::id2, line_length, MIN, mkhexd(), tag_make_edit_byte(), tag_make_edit_char(), tag_make_edit_selvis(), tag_make_group(), uid, uint, and vaddrinc.

void ht_hex_sub::handlemsg htmsg *  msg  )  [virtual]
 

Reimplemented from ht_linear_sub.

Reimplemented in ht_hex_file_sub.

Definition at line 4304 of file htformat.cc.

References ht_linear_sub::handlemsg().

Referenced by ht_hex_file_sub::handlemsg().

void ht_hex_sub::init ht_streamfile file,
FILEOFS  ofs,
dword  size,
UINT  line_length,
UINT  uid,
dword  vaddrinc = 0
 

Definition at line 4218 of file htformat.cc.

References balign, FILEOFS, Object::init(), line_length, size, uid, UINT, and vaddrinc.

Referenced by hthex_init(), and ht_clipboard_viewer::update_content().

void ht_hex_sub::last_line_id LINE_ID line_id  )  [virtual]
 

Reimplemented from ht_sub.

Definition at line 4316 of file htformat.cc.

References clear_line_id(), LINE_ID::id1, LINE_ID::id2, line_length, and uid.

int ht_hex_sub::next_line_id LINE_ID line_id,
int  n
[virtual]
 

Reimplemented from ht_sub.

Definition at line 4348 of file htformat.cc.

References LINE_ID::id1, LINE_ID::id2, line_length, and uid.

int ht_hex_sub::prev_line_id LINE_ID line_id,
int  n
[virtual]
 

Reimplemented from ht_sub.

Definition at line 4328 of file htformat.cc.

References LINE_ID::id1, LINE_ID::id2, line_length, and uid.

void ht_hex_sub::set_line_length int  line_length  ) 
 

Definition at line 4237 of file htformat.cc.

References line_length.

Referenced by ht_hex_viewer::handlemsg().


Member Data Documentation

dword ht_hex_sub::balign [protected]
 

Definition at line 470 of file htformat.h.

Referenced by convert_ofs_to_id(), and init().

dword ht_hex_sub::line_length [protected]
 

Definition at line 471 of file htformat.h.

Referenced by convert_ofs_to_id(), get_line_length(), getline(), init(), last_line_id(), next_line_id(), prev_line_id(), and set_line_length().

UINT ht_hex_sub::uid [protected]
 

Definition at line 472 of file htformat.h.

Referenced by convert_ofs_to_id(), first_line_id(), getline(), init(), last_line_id(), next_line_id(), and prev_line_id().

dword ht_hex_sub::vaddrinc [protected]
 

Definition at line 469 of file htformat.h.

Referenced by getline(), and init().


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