Source-highlight Library
srchilite::srchilite::HighlightStateBuilder Class Reference
Collaboration diagram for srchilite::srchilite::HighlightStateBuilder:

Public Member Functions

 HighlightStateBuilder (HighlightRuleFactory *_highlightRuleFactory)
 
void build (LangElems *elems, HighlightStatePtr mainState)
 Builds all the rules into the passed mainState as specified in the passed LangElems. More...
 
virtual void build (LangElem *elem, HighlightState *state)
 the following is a multi-method that needs to be processed by doublecpp
 
virtual void build (StringListLangElem *elem, HighlightState *state)
 
virtual void build (DelimitedLangElem *elem, HighlightState *state)
 
virtual void build (NamedSubExpsLangElem *elem, HighlightState *state)
 
virtual void build (StateLangElem *elem, HighlightState *state)
 
virtual void build_DB (LangElem *elem, HighlightState *state)
 

Private Attributes

HighlightRuleFactoryhighlightRuleFactory
 the factory for creating rules
 

Member Function Documentation

void srchilite::HighlightStateBuilder::build ( LangElems elems,
HighlightStatePtr  mainState 
)

Builds all the rules into the passed mainState as specified in the passed LangElems.

Parameters
elemsthe element definitions retrieved from the lang file
mainStatethe main state where to store all the rules

The documentation for this class was generated from the following files: