Diffstat (limited to 'include/sitecing/sitecing_enflesher.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | include/sitecing/sitecing_enflesher.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/sitecing/sitecing_enflesher.h b/include/sitecing/sitecing_enflesher.h index 8bc43a0..db15bc3 100644 --- a/include/sitecing/sitecing_enflesher.h +++ b/include/sitecing/sitecing_enflesher.h | |||
@@ -27,53 +27,62 @@ class sitecing_enflesher : public sitecing_enflesherFlexLexer { | |||
27 | public: | 27 | public: |
28 | /** | 28 | /** |
29 | * It is time to anchor output with the #line directive. | 29 | * It is time to anchor output with the #line directive. |
30 | */ | 30 | */ |
31 | bool anchor_time; | 31 | bool anchor_time; |
32 | /** | 32 | /** |
33 | * The file currently being written is supposed to have #line | 33 | * The file currently being written is supposed to have #line |
34 | * directives all around the place. | 34 | * directives all around the place. |
35 | */ | 35 | */ |
36 | bool anchoraged; | 36 | bool anchoraged; |
37 | /** | 37 | /** |
38 | * The reference to the parser object containg the parsed source. | 38 | * The reference to the parser object containg the parsed source. |
39 | */ | 39 | */ |
40 | sitecing_parser& parser; | 40 | sitecing_parser& parser; |
41 | /** | 41 | /** |
42 | * The output stream. | 42 | * The output stream. |
43 | */ | 43 | */ |
44 | ofstream outs; | 44 | ofstream outs; |
45 | /** | 45 | /** |
46 | * the outs stream destination file. | 46 | * the outs stream destination file. |
47 | * @see outs | 47 | * @see outs |
48 | */ | 48 | */ |
49 | string outs_filename; | 49 | string outs_filename; |
50 | 50 | ||
51 | /** | 51 | /** |
52 | * @param p The parser object containing preparsed data. | 52 | * @param p The parser object containing preparsed data. |
53 | */ | 53 | */ |
54 | sitecing_enflesher(sitecing_parser& p) | 54 | sitecing_enflesher(sitecing_parser& p) |
55 | : parser(p), anchor_time(true) { } | 55 | : parser(p), anchor_time(true) { } |
56 | 56 | ||
57 | /** | 57 | /** |
58 | * Do the job. | 58 | * Do the job. |
59 | */ | 59 | */ |
60 | void enflesh(); | 60 | void enflesh(); |
61 | 61 | ||
62 | virtual void LexerOutput(const char *buf,int size); | 62 | virtual void LexerOutput(const char *buf,int size); |
63 | virtual int yylex(); | 63 | virtual int yylex(); |
64 | 64 | ||
65 | /** | 65 | /** |
66 | * Put a #line anchor into output. | 66 | * Put a #line anchor into output. |
67 | */ | 67 | */ |
68 | void anchor(); | 68 | void anchor(); |
69 | 69 | ||
70 | /** | 70 | /** |
71 | * Close previously opened output stream, rename to the 'correct' | 71 | * Close previously opened output stream, rename to the 'correct' |
72 | * destination filename, if needed, and open new file. | 72 | * destination filename, if needed, and open new file. |
73 | * @see outs | 73 | * @see outs |
74 | * @see outs_filename | 74 | * @see outs_filename |
75 | * @see outs_close | ||
75 | */ | 76 | */ |
76 | void outs_open(const string& nfile); | 77 | void outs_open(const string& nfile); |
78 | /** | ||
79 | * Close previously opened output stream, and rename to the 'correct' | ||
80 | * destination filename, if needed. | ||
81 | * @see outs_open | ||
82 | * @see outs | ||
83 | * @see outs_filename | ||
84 | */ | ||
85 | void outs_close(); | ||
77 | }; | 86 | }; |
78 | 87 | ||
79 | #endif /* __SITECING_SITECING_ENFLESHER_H */ | 88 | #endif /* __SITECING_SITECING_ENFLESHER_H */ |