summaryrefslogtreecommitdiffstats
path: root/ue2/doxygen/cscriptparser_8h-source.html
diff options
context:
space:
mode:
authormanuel <manuel@nc8430.lan>2009-05-02 18:58:26 +0200
committermanuel <manuel@nc8430.lan>2009-05-02 18:58:26 +0200
commit93a6590af7f866838d883d92fac655251685c3d7 (patch)
tree57401b84345a4a36cee8cca2731fe567577f29e2 /ue2/doxygen/cscriptparser_8h-source.html
parentbc94c4be2e7e37f1f3e8892dc115e61ed6b640e7 (diff)
downloadooprog-93a6590af7f866838d883d92fac655251685c3d7.tar.gz
ooprog-93a6590af7f866838d883d92fac655251685c3d7.tar.bz2
ooprog-93a6590af7f866838d883d92fac655251685c3d7.zip
adding doxygen files
Diffstat (limited to 'ue2/doxygen/cscriptparser_8h-source.html')
-rw-r--r--ue2/doxygen/cscriptparser_8h-source.html80
1 files changed, 80 insertions, 0 deletions
diff --git a/ue2/doxygen/cscriptparser_8h-source.html b/ue2/doxygen/cscriptparser_8h-source.html
new file mode 100644
index 0000000..16ce4f0
--- /dev/null
+++ b/ue2/doxygen/cscriptparser_8h-source.html
@@ -0,0 +1,80 @@
1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
3<title>imgsynth2: imgsynth2/cscriptparser.h Source File</title>
4<link href="doxygen.css" rel="stylesheet" type="text/css">
5<link href="tabs.css" rel="stylesheet" type="text/css">
6</head><body>
7<!-- Generated by Doxygen 1.5.3 -->
8<div class="tabs">
9 <ul>
10 <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
11 <li><a href="namespaces.html"><span>Namespaces</span></a></li>
12 <li><a href="annotated.html"><span>Classes</span></a></li>
13 <li class="current"><a href="files.html"><span>Files</span></a></li>
14 </ul>
15</div>
16<h1>imgsynth2/cscriptparser.h</h1><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001
17<a name="l00008"></a>00008 <span class="preprocessor">#ifndef CSCRIPTPARSER_H</span>
18<a name="l00009"></a>00009 <span class="preprocessor"></span><span class="preprocessor">#define CSCRIPTPARSER_H</span>
19<a name="l00010"></a>00010 <span class="preprocessor"></span>
20<a name="l00011"></a>00011 <span class="preprocessor">#include &lt;stdexcept&gt;</span>
21<a name="l00012"></a>00012 <span class="preprocessor">#include &lt;string&gt;</span>
22<a name="l00013"></a>00013 <span class="preprocessor">#include &lt;list&gt;</span>
23<a name="l00014"></a>00014 <span class="preprocessor">#include &lt;set&gt;</span>
24<a name="l00015"></a>00015 <span class="preprocessor">#include "cfile.h"</span>
25<a name="l00016"></a>00016
26<a name="l00030"></a><a class="code" href="classCScriptparser.html">00030</a> <span class="keyword">class </span><a class="code" href="classCScriptparser.html" title="class for parsing simple scriptfiles">CScriptparser</a>
27<a name="l00031"></a>00031 {
28<a name="l00032"></a>00032 <span class="keyword">public</span>:
29<a name="l00037"></a><a class="code" href="classCScriptparser_1_1ParserError.html">00037</a> <span class="keyword">class </span><a class="code" href="classCScriptparser_1_1ParserError.html" title="Exception thrown by CScriptparser.">ParserError</a> : <span class="keyword">public</span> std::invalid_argument {
30<a name="l00038"></a>00038 <span class="keyword">public</span>:
31<a name="l00048"></a><a class="code" href="classCScriptparser_1_1ParserError.html#97e361a51f998f19064ab2f407f343ce">00048</a> <a class="code" href="classCScriptparser_1_1ParserError.html#97e361a51f998f19064ab2f407f343ce" title="Default exception ctor.">ParserError</a>(<span class="keyword">const</span> std::string&amp; what)
32<a name="l00049"></a>00049 : std::invalid_argument(what), m_line(<span class="stringliteral">""</span>)
33<a name="l00050"></a>00050 {}
34<a name="l00051"></a>00051
35<a name="l00062"></a><a class="code" href="classCScriptparser_1_1ParserError.html#83dc8bc537043d12d4c98e30f8d44f38">00062</a> <a class="code" href="classCScriptparser_1_1ParserError.html#97e361a51f998f19064ab2f407f343ce" title="Default exception ctor.">ParserError</a>(<span class="keyword">const</span> std::string&amp; what, <span class="keyword">const</span> std::string&amp; line)
36<a name="l00063"></a>00063 : std::invalid_argument(what), m_line(line)
37<a name="l00064"></a>00064 {}
38<a name="l00065"></a>00065
39<a name="l00075"></a><a class="code" href="classCScriptparser_1_1ParserError.html#191ff6b6f9d40dc40431308e4ff831ad">00075</a> <a class="code" href="classCScriptparser_1_1ParserError.html#191ff6b6f9d40dc40431308e4ff831ad" title="Default dtor.">~ParserError</a>() throw()
40<a name="l00076"></a>00076 {}
41<a name="l00077"></a>00077
42<a name="l00086"></a><a class="code" href="classCScriptparser_1_1ParserError.html#103d0af66821f52e11a57391a21de2b8">00086</a> <span class="keyword">const</span> std::string &amp;<a class="code" href="classCScriptparser_1_1ParserError.html#103d0af66821f52e11a57391a21de2b8" title="returns reference to currently parsed scriptline (if set)">getLine</a>()
43<a name="l00087"></a>00087 {
44<a name="l00088"></a>00088 <span class="keywordflow">return</span> m_line;
45<a name="l00089"></a>00089 }
46<a name="l00090"></a>00090
47<a name="l00091"></a>00091 <span class="keyword">private</span>:
48<a name="l00092"></a>00092 <span class="comment">/* members*/</span>
49<a name="l00093"></a>00093 std::string m_line;
50<a name="l00094"></a>00094 };
51<a name="l00095"></a>00095
52<a name="l00105"></a>00105 <a class="code" href="classCScriptparser.html#634edff14e86240f53ff7451343c6c56" title="Default ctor.">CScriptparser</a>(<span class="keyword">const</span> std::string&amp; scriptfile);
53<a name="l00106"></a>00106
54<a name="l00116"></a>00116 <a class="code" href="classCScriptparser.html#09591a8276fd376e04d4017f3c8d17d1" title="Default dtor.">~CScriptparser</a>();
55<a name="l00117"></a>00117
56<a name="l00127"></a>00127 <span class="keywordtype">void</span> <a class="code" href="classCScriptparser.html#d288fe020a67ade7914d7a3a77e16c42" title="Start parsing the scriptfile.">parse</a>();
57<a name="l00128"></a>00128
58<a name="l00129"></a>00129 <span class="keyword">protected</span>:
59<a name="l00141"></a>00141 <span class="keywordtype">void</span> <a class="code" href="classCScriptparser.html#9318b7e1379de95a7c920f7d0b79eb7b" title="Delegates the function and its parameters to the correct method (internal or handler)...">callFunc</a>(<span class="keyword">const</span> std::string&amp; func, <span class="keyword">const</span> std::list&lt;std::string&gt;&amp; funcparams);
60<a name="l00142"></a>00142
61<a name="l00155"></a>00155 <span class="keywordtype">void</span> <a class="code" href="classCScriptparser.html#2f2aba481c11c38b85bb2e8306961c03" title="Handles/wrappes read-command. according to the filetype the read-method of the corresponding...">read</a>(std::list&lt;std::string&gt; funcparams);
62<a name="l00156"></a>00156
63<a name="l00169"></a>00169 <span class="keywordtype">void</span> <a class="code" href="classCScriptparser.html#a8ef12e68ca61acfd463e55a3fe8518c" title="Handles/wrappes write-command. according to the filetype the write-method of the...">write</a>(std::list&lt;std::string&gt; funcparams);
64<a name="l00170"></a>00170
65<a name="l00171"></a>00171 <span class="keyword">private</span>:
66<a name="l00172"></a>00172 <span class="comment">/* members */</span>
67<a name="l00173"></a>00173 std::set&lt;CFile *&gt; m_handlers;
68<a name="l00174"></a>00174 std::string m_scriptfile;
69<a name="l00175"></a>00175 std::string m_curline;
70<a name="l00176"></a>00176 <a class="code" href="classCFile.html" title="Abstract class for handling files. Needed for generic use in CScriptparser.">CFile</a> *m_handler;
71<a name="l00177"></a>00177 };
72<a name="l00178"></a>00178
73<a name="l00179"></a>00179 <span class="preprocessor">#endif</span>
74<a name="l00180"></a>00180 <span class="preprocessor"></span>
75<a name="l00181"></a>00181 <span class="comment">/* vim: set et sw=2 ts=2: */</span>
76</pre></div><hr size="1"><address style="text-align: right;"><small>Generated on Sat May 2 18:58:11 2009 for imgsynth2 by&nbsp;
77<a href="http://www.doxygen.org/index.html">
78<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.3 </small></address>
79</body>
80</html>