Source-highlight Library
srchilite::HighlightStateBuilder Class Reference

Builds an HighlightState from the language definition file collected structures. More...

#include <highlightstatebuilder.h>

Collaboration diagram for 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...
 
branches build void (LangElem *elem, HighlightState *state)
 the following is a multi-method that needs to be processed by doublecpp
 
 void (StringListLangElem *elem, HighlightState *state)
 
 void (DelimitedLangElem *elem, HighlightState *state)
 
 void (NamedSubExpsLangElem *elem, HighlightState *state)
 
 void (StateLangElem *elem, HighlightState *state)
 
 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
 

Detailed Description

Builds an HighlightState from the language definition file collected structures.

This class uses dynamic overloading and it must be processed by doublecpp, http://doublecpp.sf.net, in case you need to modify it.

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
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: