RULE_BLOCK Class Reference

#include <pageblk.h>

Inheritance diagram for RULE_BLOCK:

PAGE_BLOCK List of all members.

Detailed Description

Class for dealing with rule block.

Definition at line 230 of file pageblk.h.

Public Member Functions

Private Attributes


Constructor & Destructor Documentation

RULE_BLOCK::RULE_BLOCK (  )  [inline]

Definition at line 233 of file pageblk.h.

00233                  { 
00234     }                            //empty constructor

RULE_BLOCK::RULE_BLOCK ( ICOORDELT_LIST *  points,
INT8  sing,
INT8  colo 
)

Init a BLAH, where BLAH is RULE_BLOCK.

Definition at line 658 of file pageblk.cpp.

References multiplicity.

00658                                                                     :PAGE_BLOCK (points,
00659 PB_RULES) {
00660   multiplicity = sing;
00661   colour = colo;
00662 }


Member Function Documentation

void RULE_BLOCK::de_serialise_asc ( FILE *  f  ) 

Convert BLAH from ascii file, where BLAH is RULE_BLOCK.

Definition at line 695 of file pageblk.cpp.

References de_serialise_INT32(), and multiplicity.

00697                                    {
00698   ((PAGE_BLOCK *) this)->de_serialise_asc (f);
00699   multiplicity = de_serialise_INT32 (f);
00700   colour = de_serialise_INT32 (f);
00701 }

RULE_BLOCK::make_serialise ( RULE_BLOCK   ) 

void RULE_BLOCK::set_attrs ( INT8  sing,
INT8  colo 
)

Definition at line 665 of file pageblk.cpp.

References multiplicity.

00665                                                { 
00666   multiplicity = sing;
00667   colour = colo;
00668 }

void RULE_BLOCK::show_attrs ( DEBUG_WIN debug  ) 

Print info about BLAH, where BLAH is RULE_BLOCK.

Definition at line 674 of file pageblk.cpp.

References blabel, f, multiplicity, and R_START.

00674                                         { 
00675   f->dprintf ("RULE BLOCK with attributes %s, %s\n",
00676     blabel[R_START][multiplicity], blabel[R_START + 1][colour]);
00677 }


Member Data Documentation

INT8 RULE_BLOCK::colour [private]

FIX:.

Definition at line 251 of file pageblk.h.

INT8 RULE_BLOCK::multiplicity [private]

FIX:.

Definition at line 249 of file pageblk.h.

Referenced by de_serialise_asc(), RULE_BLOCK(), set_attrs(), and show_attrs().


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