BLOCK_RES Class Reference

#include <pageres.h>

Inheritance diagram for BLOCK_RES:

ELIST_LINK List of all members.

Detailed Description

Class for getting block results.

Definition at line 73 of file pageres.h.

Public Member Functions

Public Attributes


Constructor & Destructor Documentation

BLOCK_RES::BLOCK_RES (  )  [inline]

Definition at line 97 of file pageres.h.

00097                 { 
00098     }                            // empty constructor

BLOCK_RES::BLOCK_RES ( BLOCK the_block  ) 

Constructor for BLOCK results

Definition at line 52 of file pageres.cpp.

References block, bold, char_count, FALSE, font_assigned, font_class, italic, rej_count, row_count, row_res_list, and x_height.

00054                       {
00055   ROW_IT row_it (the_block->row_list ());
00056   ROW_RES_IT row_res_it(&row_res_list); 
00057 
00058   char_count = 0;
00059   rej_count = 0;
00060   font_class = -1;               //not assigned
00061   x_height = -1.0;
00062   font_assigned = FALSE;
00063   bold = FALSE;
00064   italic = FALSE;
00065   row_count = 0;
00066 
00067   block = the_block;
00068 
00069   for (row_it.mark_cycle_pt (); !row_it.cycled_list (); row_it.forward ()) {
00070     row_res_it.add_to_end (new ROW_RES (row_it.data ()));
00071   }
00072 }

BLOCK_RES::~BLOCK_RES (  )  [inline]

Definition at line 103 of file pageres.h.

00103                   {              //destructor
00104     }


Member Function Documentation

void ELIST_LINK::de_serialise_asc ( FILE *  f  )  [inherited]

Reimplemented in ICOORDELT.

Definition at line 39 of file elst.cpp.

References ABORT, ERRCODE::error(), and SERIALISE_LINKS.

00040                                            {
00041   SERIALISE_LINKS.error ("ELIST_LINK::de_serialise_asc", ABORT,
00042     "Don't call this, override!");
00043 }

void ELIST_LINK::serialise_asc ( FILE *  f  )  [inherited]

Generates an error, as it should never be called.

Definition at line 32 of file elst.cpp.

References ABORT, ERRCODE::error(), and SERIALISE_LINKS.

00033                                         {
00034   SERIALISE_LINKS.error ("ELIST_LINK::serialise_asc", ABORT,
00035     "Don't call this, override!");
00036 }


Member Data Documentation

BLOCK* BLOCK_RES::block

Real block.

Definition at line 77 of file pageres.h.

Referenced by BLOCK_RES(), doc_and_block_rejection(), output_pass(), and write_results().

BOOL8 BLOCK_RES::bold

All bold.

Definition at line 90 of file pageres.h.

Referenced by BLOCK_RES().

INT32 BLOCK_RES::char_count

Chars in block.

Definition at line 79 of file pageres.h.

Referenced by BLOCK_RES(), doc_and_block_rejection(), PAGE_RES_IT::rej_stat_word(), and unrej_good_quality_words().

BOOL8 BLOCK_RES::font_assigned

Block already processed.

Definition at line 88 of file pageres.h.

Referenced by BLOCK_RES().

INT16 BLOCK_RES::font_class

Definition at line 82 of file pageres.h.

Referenced by BLOCK_RES().

BOOL8 BLOCK_RES::italic

All italic.

Definition at line 92 of file pageres.h.

Referenced by BLOCK_RES().

INT32 BLOCK_RES::rej_count

Rejected chars.

Definition at line 81 of file pageres.h.

Referenced by BLOCK_RES(), doc_and_block_rejection(), PAGE_RES_IT::rej_stat_word(), and unrej_good_quality_words().

INT16 BLOCK_RES::row_count

FIX:.

Definition at line 84 of file pageres.h.

Referenced by BLOCK_RES().

ROW_RES_LIST BLOCK_RES::row_res_list

LIST of block results.

Definition at line 95 of file pageres.h.

Referenced by BLOCK_RES().

float BLOCK_RES::x_height

height of block

Definition at line 86 of file pageres.h.

Referenced by BLOCK_RES().


The documentation for this class was generated from the following files:
Generated on Wed Feb 28 19:49:30 2007 for Tesseract by  doxygen 1.5.1