diff options
Diffstat (limited to '')
-rw-r--r-- | src/builder.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/builder.h b/src/builder.h index 296b9d7..82a82c4 100644 --- a/src/builder.h +++ b/src/builder.h | |||
@@ -16,6 +16,7 @@ class Action; | |||
16 | class Command; | 16 | class Command; |
17 | class Rule; | 17 | class Rule; |
18 | class Target; | 18 | class Target; |
19 | class Viewer; | ||
19 | 20 | ||
20 | #define YY_DECL int yylex( YYSTYPE *yylval_param, YYLTYPE *yylloc_param, Builder &bld ) | 21 | #define YY_DECL int yylex( YYSTYPE *yylval_param, YYLTYPE *yylloc_param, Builder &bld ) |
21 | YY_DECL; | 22 | YY_DECL; |
@@ -31,7 +32,7 @@ class Builder | |||
31 | }; | 32 | }; |
32 | 33 | ||
33 | public: | 34 | public: |
34 | Builder(); | 35 | Builder( Viewer &rView ); |
35 | virtual ~Builder(); | 36 | virtual ~Builder(); |
36 | 37 | ||
37 | void load( const char *sFN ); | 38 | void load( const char *sFN ); |
@@ -43,6 +44,10 @@ public: | |||
43 | 44 | ||
44 | std::string file; | 45 | std::string file; |
45 | 46 | ||
47 | Viewer &view() | ||
48 | { | ||
49 | return rView; | ||
50 | } | ||
46 | void add( Action *pAct ); | 51 | void add( Action *pAct ); |
47 | void add( Command *pCmd ); | 52 | void add( Command *pCmd ); |
48 | void add( Rule *pRule ); | 53 | void add( Rule *pRule ); |
@@ -145,6 +150,8 @@ private: | |||
145 | StaticString sTmp; | 150 | StaticString sTmp; |
146 | 151 | ||
147 | bool bReqRegexp; | 152 | bool bReqRegexp; |
153 | |||
154 | Viewer &rView; | ||
148 | }; | 155 | }; |
149 | 156 | ||
150 | void cleanList( std::list<std::string> &lst ); | 157 | void cleanList( std::list<std::string> &lst ); |