aboutsummaryrefslogtreecommitdiff
path: root/docs/doxygen/nel/a05374.html
blob: c7950010eaf4b0b015a6595cd449febd58922496 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>NeL: NLGEORGES Namespace Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.3.6 -->
<div class="qindex">  <form class="search" action="search.php" method="get">
<a class="qindex" href="main.html">Main&nbsp;Page</a> | <a class="qindex" href="namespaces.html">Namespace List</a> | <a class="qindex" href="hierarchy.html">Class&nbsp;Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical&nbsp;List</a> | <a class="qindex" href="annotated.html">Data&nbsp;Structures</a> | <a class="qindex" href="files.html">File&nbsp;List</a> | <a class="qindex" href="namespacemembers.html">Namespace&nbsp;Members</a> | <a class="qindex" href="functions.html">Data&nbsp;Fields</a> | <a class="qindex" href="globals.html">Globals</a> | <a class="qindex" href="pages.html">Related&nbsp;Pages</a>  | <span class="search"><u>S</u>earch&nbsp;for&nbsp;<input class="search" type="text" name="query" value="" size="20" accesskey="s"/></span></form></div>
<h1>NLGEORGES Namespace Reference</h1>
<p>

<p>
<table border=0 cellpadding=0 cellspacing=0>
<tr><td></td></tr>
<tr><td colspan=2><br><h2>Data Structures</h2></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>class &nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02528.html">CFileHeader</a></td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top>class &nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02544.html">CForm</a></td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top>class &nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02545.html">CForm::CParent</a></td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top>class &nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02546.html">CFormDfn</a></td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top>class &nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02548.html">CFormDfn::CEntry</a></td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top>class &nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02549.html">CFormDfn::CParent</a></td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top>class &nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02550.html">CFormElm</a></td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top>class &nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02552.html">CFormElmArray</a></td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top>class &nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02553.html">CFormElmArray::CElement</a></td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top>class &nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02554.html">CFormElmAtom</a></td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top>class &nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02555.html">CFormElmStruct</a></td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top>class &nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02556.html">CFormElmStruct::CFormElmStructElm</a></td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top>class &nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02557.html">CFormElmVirtualStruct</a></td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top>class &nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02558.html">CFormLoader</a></td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top>class &nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02979.html">CMyEvalNumExpr</a></td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top>class &nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03622.html">CType</a></td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top>class &nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03624.html">CType::CDefinition</a></td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top>class &nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03926.html">UForm</a></td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top>class &nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02547.html">UFormDfn</a></td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top>class &nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02551.html">UFormElm</a></td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top>class &nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02559.html">UFormLoader</a></td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top>class &nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03623.html">UType</a></td></tr>

<tr><td colspan=2><br><h2>Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a05374.html#a3">buildError</a> (char *msg, <a class="el" href="a04558.html#a15">uint</a> <a class="el" href="a04223.html#a586">offset</a>)</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a04558.html#a15">uint</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a05374.html#a2">findSpecialCharacter</a> (const char *special, char c, <a class="el" href="a04558.html#a15">uint</a> startOffset)</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a04558.html#a15">uint</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a05374.html#a1">getNextToken</a> (const char *startString, string &amp;token, <a class="el" href="a04558.html#a15">uint</a> &amp;<a class="el" href="a04223.html#a586">offset</a>)</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a05374.html#a0">warning</a> (bool exception, const char *<a class="el" href="a04223.html#a641">format</a>,...)</td></tr>

</table>
<hr><h2>Function Documentation</h2>
<a class="anchor" name="a3" doxytag="NLGEORGES::buildError" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> void buildError </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">char *&nbsp;</td>
          <td class="mdname" nowrap> <em>msg</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap><a class="el" href="a04558.html#a15">uint</a>&nbsp;</td>
          <td class="mdname" nowrap> <em>offset</em></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>

<p>
Definition at line <a class="el" href="a06586.html#l00533">533</a> of file <a class="el" href="a06586.html">type.cpp</a>.
<p>
References <a class="el" href="a05646.html#l00645">offset</a>, and <a class="el" href="a05981.html#l00105">uint</a>.
<p>
<div class="fragment"><pre>00534 {
00535         msg[0] = 0;
00536         <span class="keywordflow">if</span> (<a class="code" href="a04223.html#a586">offset</a>&lt;512)
00537         {
00538                 <a class="code" href="a04558.html#a15">uint</a> i;
00539                 <span class="keywordflow">for</span> (i=0; i&lt;<a class="code" href="a04223.html#a586">offset</a>; i++)
00540                         msg[i] = <span class="charliteral">'-'</span>;
00541                 msg[i] = <span class="charliteral">'^'</span>;
00542                 msg[i+1] = 0;
00543         }
00544 }
</pre></div>    </td>
  </tr>
</table>
<a class="anchor" name="a2" doxytag="NLGEORGES::findSpecialCharacter" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> <a class="el" href="a04558.html#a15">uint</a> findSpecialCharacter </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">const char *&nbsp;</td>
          <td class="mdname" nowrap> <em>special</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap>char&nbsp;</td>
          <td class="mdname" nowrap> <em>c</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap><a class="el" href="a04558.html#a15">uint</a>&nbsp;</td>
          <td class="mdname" nowrap> <em>startOffset</em></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>

<p>
Definition at line <a class="el" href="a06586.html#l00509">509</a> of file <a class="el" href="a06586.html">type.cpp</a>.
<p>
References <a class="el" href="a05646.html#l00645">offset</a>, and <a class="el" href="a05981.html#l00105">uint</a>.
<p>
<div class="fragment"><pre>00510 {
00511         <a class="code" href="a04558.html#a15">uint</a> <a class="code" href="a04223.html#a586">offset</a> = startOffset;
00512         <span class="keywordflow">while</span> (special[<a class="code" href="a04223.html#a586">offset</a>])
00513         {
00514                 <span class="keywordflow">if</span> (special[<a class="code" href="a04223.html#a586">offset</a>] == <span class="charliteral">'\\'</span>)
00515                 {
00516                         <span class="keywordflow">if</span> (special[<a class="code" href="a04223.html#a586">offset</a>+1])
00517                                 <a class="code" href="a04223.html#a586">offset</a>++;
00518                         <span class="keywordflow">else</span>
00519                                 <span class="keywordflow">break</span>;
00520                 }
00521                 <span class="keywordflow">else</span>
00522                 {
00523                         <span class="keywordflow">if</span> (special[<a class="code" href="a04223.html#a586">offset</a>] == c)
00524                                 <span class="keywordflow">return</span> <a class="code" href="a04223.html#a586">offset</a>;
00525                 }
00526                 <a class="code" href="a04223.html#a586">offset</a>++;
00527         }
00528         <span class="keywordflow">return</span> 0xffffffff;
00529 }
</pre></div>    </td>
  </tr>
</table>
<a class="anchor" name="a1" doxytag="NLGEORGES::getNextToken" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> <a class="el" href="a04558.html#a15">uint</a> getNextToken </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">const char *&nbsp;</td>
          <td class="mdname" nowrap> <em>startString</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap>string &amp;&nbsp;</td>
          <td class="mdname" nowrap> <em>token</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap><a class="el" href="a04558.html#a15">uint</a> &amp;&nbsp;</td>
          <td class="mdname" nowrap> <em>offset</em></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>

<p>
Definition at line <a class="el" href="a06586.html#l00459">459</a> of file <a class="el" href="a06586.html">type.cpp</a>.
<p>
References <a class="el" href="a06586.html#l00454">NL_TOKEN_DOUBLE_QUOTE</a>, <a class="el" href="a06586.html#l00457">NL_TOKEN_END</a>, <a class="el" href="a06586.html#l00456">NL_TOKEN_NAME</a>, <a class="el" href="a06586.html#l00455">NL_TOKEN_OPEN_BRACKET</a>, <a class="el" href="a06586.html#l00453">NL_TOKEN_STRING</a>, <a class="el" href="a05646.html#l00645">offset</a>, and <a class="el" href="a05981.html#l00105">uint</a>.
<p>
<div class="fragment"><pre>00460 {
00461         <span class="keywordflow">if</span> (startString[<a class="code" href="a04223.html#a586">offset</a>] == 0)
00462                 <span class="keywordflow">return</span> <a class="code" href="a05163.html#a4">NL_TOKEN_END</a>;
00463         <span class="keywordflow">if</span> (startString[<a class="code" href="a04223.html#a586">offset</a>] == <span class="charliteral">'"'</span>)
00464         {
00465                 <a class="code" href="a04223.html#a586">offset</a>++;
00466                 <span class="keywordflow">return</span> <a class="code" href="a05163.html#a1">NL_TOKEN_DOUBLE_QUOTE</a>;
00467         }
00468         <span class="keywordflow">if</span> (startString[<a class="code" href="a04223.html#a586">offset</a>] == <span class="charliteral">'{'</span>)
00469         {
00470                 <a class="code" href="a04223.html#a586">offset</a>++;
00471                 <span class="keywordflow">return</span> <a class="code" href="a05163.html#a2">NL_TOKEN_OPEN_BRACKET</a>;
00472         }
00473         <span class="keywordflow">if</span> ( (startString[<a class="code" href="a04223.html#a586">offset</a>] == <span class="charliteral">'$'</span>) &amp;&amp; (strncmp (startString+offset+1, <span class="stringliteral">"filename"</span>, 8) == 0) )
00474         {
00475                 <a class="code" href="a04223.html#a586">offset</a> += 9;
00476                 <span class="keywordflow">return</span> <a class="code" href="a05163.html#a3">NL_TOKEN_NAME</a>;
00477         }
00478         token = <span class="stringliteral">""</span>;
00479         <span class="keywordflow">while</span> (startString[<a class="code" href="a04223.html#a586">offset</a>])
00480         {
00481                 <span class="keywordflow">if</span> (startString[<a class="code" href="a04223.html#a586">offset</a>] == <span class="charliteral">'\\'</span>)
00482                 {
00483                         <span class="keywordflow">if</span> (startString[<a class="code" href="a04223.html#a586">offset</a>+1])
00484                         {
00485                                 token += startString[<a class="code" href="a04223.html#a586">offset</a>+1];
00486                                 <a class="code" href="a04223.html#a586">offset</a>++;
00487                         }
00488                         <span class="keywordflow">else</span>
00489                         {
00490                                 <a class="code" href="a04223.html#a586">offset</a>++;
00491                                 <span class="keywordflow">break</span>;
00492                         }
00493                 }
00494                 <span class="keywordflow">else</span> <span class="keywordflow">if</span> (startString[<a class="code" href="a04223.html#a586">offset</a>] == <span class="charliteral">'"'</span>)
00495                         <span class="keywordflow">break</span>;
00496                 <span class="keywordflow">else</span> <span class="keywordflow">if</span> (startString[<a class="code" href="a04223.html#a586">offset</a>] == <span class="charliteral">'{'</span>)
00497                         <span class="keywordflow">break</span>;
00498                 <span class="keywordflow">else</span> <span class="keywordflow">if</span> ( (startString[<a class="code" href="a04223.html#a586">offset</a>] == <span class="charliteral">'$'</span>) &amp;&amp; (strncmp (startString+offset+1, <span class="stringliteral">"filename"</span>, 8) == 0) )
00499                         <span class="keywordflow">break</span>;
00500                 <span class="keywordflow">else</span>
00501                         token += startString[<a class="code" href="a04223.html#a586">offset</a>];
00502                 <a class="code" href="a04223.html#a586">offset</a>++;
00503         }
00504         <span class="keywordflow">return</span> <a class="code" href="a05163.html#a0">NL_TOKEN_STRING</a>;
00505 }
</pre></div>    </td>
  </tr>
</table>
<a class="anchor" name="a0" doxytag="NLGEORGES::warning" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> void NLGEORGES::warning </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">bool&nbsp;</td>
          <td class="mdname" nowrap> <em>exception</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap>const char *&nbsp;</td>
          <td class="mdname" nowrap> <em>format</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap>...&nbsp;</td>
          <td class="mdname" nowrap></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>

<p>
Definition at line <a class="el" href="a05724.html#l00045">45</a> of file <a class="el" href="a05724.html">form.cpp</a>.
<p>
References <a class="el" href="a05646.html#l00649">buffer</a>, <a class="el" href="a05646.html#l01016">format</a>, <a class="el" href="a05622.html#l00135">nlwarning</a>, and <a class="el" href="a05586.html#l00161">NLMISC::smprintf()</a>.
<p>
Referenced by <a class="el" href="a06586.html#l00822">NLGEORGES::CType::warning()</a>, <a class="el" href="a05773.html#l00250">NLGEORGES::CFileHeader::warning()</a>, <a class="el" href="a05730.html#l00316">NLGEORGES::CFormLoader::warning()</a>, <a class="el" href="a05728.html#l03057">NLGEORGES::CFormElmAtom::warning()</a>, <a class="el" href="a05728.html#l02754">NLGEORGES::CFormElmArray::warning()</a>, <a class="el" href="a05728.html#l02230">NLGEORGES::CFormElmVirtualStruct::warning()</a>, <a class="el" href="a05728.html#l02099">NLGEORGES::CFormElmStruct::warning()</a>, <a class="el" href="a05728.html#l01656">NLGEORGES::CFormElm::warning()</a>, <a class="el" href="a05726.html#l00848">NLGEORGES::CFormDfn::warning()</a>, <a class="el" href="a05724.html#l00358">NLGEORGES::CForm::warning()</a>, and <a class="el" href="a06586.html#l00837">NLGEORGES::CType::warning2()</a>.
<p>
<div class="fragment"><pre>00046 {
00047         <span class="comment">// Make a buffer string</span>
00048         va_list args;
00049         va_start( args, format );
00050         <span class="keywordtype">char</span> <a class="code" href="a04223.html#a589">buffer</a>[1024];
00051         vsnprintf( buffer, 1024, format, args );
00052         va_end( args );
00053 
00054         <span class="comment">// Set the warning</span>
00055         <span class="keywordflow">if</span> (exception)
00056         {
00057                 <span class="comment">// Make an error message</span>
00058                 <span class="keywordtype">char</span> tmp[1024];
00059                 <a class="code" href="a05378.html#a259">smprintf</a> (tmp, 1024, <span class="stringliteral">"NeL::Georges %s"</span>, buffer);
00060                 <span class="keywordflow">throw</span> <a class="code" href="a03830.html">EXmlParsingError</a> (tmp);
00061         }
00062         <span class="keywordflow">else</span>
00063         {       
00064                 <a class="code" href="a04199.html#a2">nlwarning</a> (<span class="stringliteral">"NeL::Georges %s"</span>, buffer);
00065         }
00066 }
</pre></div>    </td>
  </tr>
</table>
<hr size="1"><address style="align: right;"><small>Generated on Tue Mar 16 12:39:40 2004 for NeL by
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border=0 > 
</a>1.3.6 </small></address>
</body>
</html>