diff options
| author | manuel <manuel@nc8430.lan> | 2009-04-27 00:24:16 +0200 |
|---|---|---|
| committer | manuel <manuel@nc8430.lan> | 2009-04-27 00:24:16 +0200 |
| commit | 384539f7cc9feaa7ef7cee385cce472c6966c843 (patch) | |
| tree | 42d3cbc96d44087c0b6bbe8d41710e5c5f1efced /ue1/doxygen/cscriptparser_8h-source.html | |
| download | ooprog-384539f7cc9feaa7ef7cee385cce472c6966c843.tar.gz ooprog-384539f7cc9feaa7ef7cee385cce472c6966c843.tar.bz2 ooprog-384539f7cc9feaa7ef7cee385cce472c6966c843.zip | |
Adding ue1
Diffstat (limited to 'ue1/doxygen/cscriptparser_8h-source.html')
| -rw-r--r-- | ue1/doxygen/cscriptparser_8h-source.html | 80 |
1 files changed, 80 insertions, 0 deletions
diff --git a/ue1/doxygen/cscriptparser_8h-source.html b/ue1/doxygen/cscriptparser_8h-source.html new file mode 100644 index 0000000..fd5aa9a --- /dev/null +++ b/ue1/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>imgsynth: imgsynth/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 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>imgsynth/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 <stdexcept></span> | ||
| 21 | <a name="l00012"></a>00012 <span class="preprocessor">#include <string></span> | ||
| 22 | <a name="l00013"></a>00013 <span class="preprocessor">#include <list></span> | ||
| 23 | <a name="l00014"></a>00014 <span class="preprocessor">#include <set></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& 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& what, <span class="keyword">const</span> std::string& 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 &<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& 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& func, <span class="keyword">const</span> std::list<std::string>& 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<std::string> 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<std::string> 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<CFile *> 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 Sun Apr 26 12:25:52 2009 for imgsynth by | ||
| 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> | ||
