Source-highlight Library
highlightstatebuilder.hpp
1 //
2 // Author: Lorenzo Bettini <http://www.lorenzobettini.it>, (C) 2004-2008
3 //
4 // Copyright: See COPYING file that comes with this distribution
5 //
6 
7 #ifndef HIGHLIGHTSTATEBUILDER_H_
8 #define HIGHLIGHTSTATEBUILDER_H_
9 
10 #include "highlightstate.h"
11 
12 namespace srchilite {
13 
14 class LangElems;
15 class HighlightRuleFactory;
16 
22 // doublecpp: forward declarations, DO NOT MODIFY
23 class DelimitedLangElem; // file: delimitedlangelem.h
24 class HighlightState; // file: highlightstate.h
25 class LangElem; // file: langelem.h
26 class NamedSubExpsLangElem; // file: namedsubexpslangelem.h
27 class StateLangElem; // file: statelangelem.h
28 class StringListLangElem; // file: stringlistlangelem.h
29 // doublecpp: end, DO NOT MODIFY
30 
31 #line 22 "highlightstatebuilder.h"
32 class HighlightStateBuilder
33 {
35  HighlightRuleFactory *highlightRuleFactory;
36 public:
37  HighlightStateBuilder(HighlightRuleFactory *_highlightRuleFactory);
38  virtual ~HighlightStateBuilder();
39 
47  void build(LangElems *elems, HighlightStatePtr mainState);
48 
50 // doublecpp: method branches, DO NOT MODIFY
51 #line 40 "highlightstatebuilder.h"
52 virtual void build(LangElem * elem, HighlightState * state);
53 #line 41 "highlightstatebuilder.h"
54 virtual void build(StringListLangElem * elem, HighlightState * state);
55 #line 42 "highlightstatebuilder.h"
56 virtual void build(DelimitedLangElem * elem, HighlightState * state);
57 #line 43 "highlightstatebuilder.h"
58 virtual void build(NamedSubExpsLangElem * elem, HighlightState * state);
59 #line 44 "highlightstatebuilder.h"
60 virtual void build(StateLangElem * elem, HighlightState * state);
61 virtual void build_DB(LangElem * elem, HighlightState * state);
62 #line 44 "highlightstatebuilder.h"
63 // doublecpp: end, DO NOT MODIFY
64 
65 };
66 
67 }
68 
69 #endif /*HIGHLIGHTSTATEBUILDER_H_*/
void build(LangElems *elems, HighlightStatePtr mainState)
Builds all the rules into the passed mainState as specified in the passed LangElems.
HighlightRuleFactory * highlightRuleFactory
the factory for creating rules
Definition: highlightstatebuilder.h:24
C++ class: doctemplate.h.
Definition: bufferedoutput.cpp:13
boost::shared_ptr< HighlightState > HighlightStatePtr
the reference to an HighlightState
Definition: highlightstate.h:38