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

ht_collapsable_sub Class Reference

#include <htformat.h>

Inheritance diagram for ht_collapsable_sub:

ht_layer_sub ht_sub Object List of all members.

Public Member Functions

void init (ht_streamfile *file, ht_sub *sub, bool own_sub, char *nodename, bool collapsed)
virtual void done ()
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 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)
virtual bool ref (LINE_ID *id)
virtual ht_search_resultsearch (ht_search_request *search, FILEOFS start, FILEOFS end)

Protected Attributes

char * nodestring
bool collapsed
LINE_ID fid
LINE_ID myfid

Member Function Documentation

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

Reimplemented from ht_layer_sub.

Definition at line 4597 of file htformat.cc.

References ht_layer_sub::convert_id_to_ofs(), and FILEOFS.

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

Reimplemented from ht_layer_sub.

Definition at line 4584 of file htformat.cc.

References collapsed, ht_layer_sub::convert_ofs_to_id(), and FILEOFS.

void ht_collapsable_sub::done  )  [virtual]
 

Reimplemented from ht_layer_sub.

Definition at line 4578 of file htformat.cc.

References ht_layer_sub::done(), and nodestring.

void ht_collapsable_sub::first_line_id LINE_ID line_id  )  [virtual]
 

Reimplemented from ht_layer_sub.

Definition at line 4602 of file htformat.cc.

References clear_line_id(), and myfid.

Referenced by last_line_id().

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

Reimplemented from ht_layer_sub.

Definition at line 4608 of file htformat.cc.

References collapsed, compeq_line_id(), ht_layer_sub::getline(), LINE_ID::id1, LINE_ID::id2, myfid, nodestring, tag_make_ref(), and tag_strlen().

void ht_collapsable_sub::init ht_streamfile file,
ht_sub sub,
bool  own_sub,
char *  nodename,
bool  collapsed
 

Definition at line 4565 of file htformat.cc.

References clear_line_id(), collapsed, fid, file, ht_layer_sub::first_line_id(), ht_collapsable_sub_globalfaddr, ht_strdup(), LINE_ID::id1, LINE_ID::id2, Object::init(), myfid, and nodestring.

Referenced by htpefheader_init().

void ht_collapsable_sub::last_line_id LINE_ID line_id  )  [virtual]
 

Reimplemented from ht_layer_sub.

Definition at line 4625 of file htformat.cc.

References collapsed, first_line_id(), and ht_layer_sub::last_line_id().

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

Reimplemented from ht_layer_sub.

Definition at line 4631 of file htformat.cc.

References collapsed, compeq_line_id(), ht_layer_sub::first_line_id(), myfid, and ht_layer_sub::next_line_id().

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

Reimplemented from ht_layer_sub.

Definition at line 4650 of file htformat.cc.

References collapsed, compeq_line_id(), fid, myfid, and ht_layer_sub::prev_line_id().

bool ht_collapsable_sub::ref LINE_ID id  )  [virtual]
 

Reimplemented from ht_layer_sub.

Definition at line 4662 of file htformat.cc.

References collapsed, compeq_line_id(), myfid, and ht_layer_sub::ref().

ht_search_result * ht_collapsable_sub::search ht_search_request search,
FILEOFS  start,
FILEOFS  end
[virtual]
 

Reimplemented from ht_layer_sub.

Definition at line 4672 of file htformat.cc.

References collapsed, FILEOFS, NULL, and ht_layer_sub::search().


Member Data Documentation

bool ht_collapsable_sub::collapsed [protected]
 

Definition at line 552 of file htformat.h.

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

LINE_ID ht_collapsable_sub::fid [protected]
 

Definition at line 553 of file htformat.h.

Referenced by init(), and prev_line_id().

LINE_ID ht_collapsable_sub::myfid [protected]
 

Definition at line 554 of file htformat.h.

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

char* ht_collapsable_sub::nodestring [protected]
 

Definition at line 551 of file htformat.h.

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


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