Home | Modules | Class Hierarchy | Alphabetical List | Compound List | Related Pages

HRCParserImpl Class Reference
[Parsers]

Inheritance diagram for HRCParserImpl:

HRCParser

Detailed Description

Implementation of HRCParser.

Reads and mantains HRC database of syntax rules, used by TextParser implementations to make realtime text syntax parsing.


Public Member Functions

void setErrorHandler (ErrorHandler *eh)
void loadSource (InputSource *is)
FileTypegetFileType (const String *name)
FileTypeenumerateFileTypes (int index)
FileTypechooseFileType (const String *fileName, const String *firstLine, int typeNo=0)
int getRegionCount ()
const RegiongetRegion (int id)
const RegiongetRegion (const String *name)
const StringgetVersion ()

Protected Types

enum  QualifyNameType { QNT_DEFINE, QNT_SCHEME, QNT_ENTITY }

Protected Member Functions

void loadFileType (FileType *filetype)
void parseHRC (InputSource *is)
void addPrototype (Element *elem)
void addType (Element *elem)
void addScheme (Element *elem)
void addSchemeNodes (SchemeImpl *scheme, Node *elem)
void loadBlockRegions (SchemeNode *node, Element *el)
void loadRegions (SchemeNode *node, Element *el, bool st)
StringqualifyOwnName (const String *name)
bool checkNameExist (const String *name, FileTypeImpl *parseType, QualifyNameType qntype, bool logErrors)
StringqualifyForeignName (const String *name, QualifyNameType qntype, bool logErrors)
void updateLinks ()
StringuseEntities (const String *name)
const RegiongetNCRegion (Element *el, const String &tag)
const RegiongetNCRegion (const String *name, bool logErrors)

Protected Attributes

Hashtable< FileTypeImpl * > fileTypeHash
Vector< FileTypeImpl * > fileTypeVector
Hashtable< SchemeImpl * > schemeHash
Hashtable< int > disabledSchemes
Vector< const Region * > regionNamesVector
Hashtable< const Region * > regionNamesHash
Hashtable< String * > schemeEntitiesHash
StringversionName
FileTypeImplparseType
InputSourcecurInputSource
bool structureChanged
bool updateStarted
DocumentBuilder docbuilder
ErrorHandlererrorHandler


Member Function Documentation

const Region * HRCParserImpl::getNCRegion const String name,
bool  logErrors
[protected]
 

Check for 'default' region request. Regions with this name are always transparent



Colorer-take5 Library. Copyright © 1999-2006 Igor Russkih.
Generated at Fri Nov 24 17:13:13 2006 by doxygen 1.4.6.