summaryrefslogtreecommitdiffstats
path: root/ue1/doxygen/cfile_8h-source.html
diff options
context:
space:
mode:
Diffstat (limited to 'ue1/doxygen/cfile_8h-source.html')
-rw-r--r--ue1/doxygen/cfile_8h-source.html62
1 files changed, 62 insertions, 0 deletions
diff --git a/ue1/doxygen/cfile_8h-source.html b/ue1/doxygen/cfile_8h-source.html
new file mode 100644
index 0000000..18fa26e
--- /dev/null
+++ b/ue1/doxygen/cfile_8h-source.html
@@ -0,0 +1,62 @@
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/cfile.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>imgsynth/cfile.h</h1><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001
17<a name="l00009"></a>00009 <span class="preprocessor">#ifndef CFILE_H</span>
18<a name="l00010"></a>00010 <span class="preprocessor"></span><span class="preprocessor">#define CFILE_H</span>
19<a name="l00011"></a>00011 <span class="preprocessor"></span>
20<a name="l00012"></a>00012 <span class="preprocessor">#include &lt;string&gt;</span>
21<a name="l00013"></a>00013 <span class="preprocessor">#include &lt;set&gt;</span>
22<a name="l00014"></a>00014 <span class="preprocessor">#include &lt;list&gt;</span>
23<a name="l00015"></a>00015 <span class="preprocessor">#include &lt;fstream&gt;</span>
24<a name="l00016"></a>00016 <span class="preprocessor">#include &lt;stdexcept&gt;</span>
25<a name="l00017"></a>00017
26<a name="l00029"></a><a class="code" href="classCFile.html">00029</a> <span class="keyword">class </span><a class="code" href="classCFile.html" title="Abstract class for handling files. Needed for generic use in CScriptparser.">CFile</a>
27<a name="l00030"></a>00030 {
28<a name="l00031"></a>00031 <span class="keyword">public</span>:
29<a name="l00036"></a><a class="code" href="classCFile_1_1FileError.html">00036</a> <span class="keyword">class </span><a class="code" href="classCFile_1_1FileError.html" title="Exception thrown by implemententations of CFile.">FileError</a> : <span class="keyword">public</span> std::invalid_argument {
30<a name="l00037"></a>00037 <span class="keyword">public</span>:
31<a name="l00047"></a><a class="code" href="classCFile_1_1FileError.html#3d86e28f4389bcf3d1422b461885c858">00047</a> <a class="code" href="classCFile_1_1FileError.html#3d86e28f4389bcf3d1422b461885c858" title="Default exception ctor.">FileError</a>(<span class="keyword">const</span> std::string&amp; what)
32<a name="l00048"></a>00048 : std::invalid_argument(what)
33<a name="l00049"></a>00049 {}
34<a name="l00050"></a>00050 };
35<a name="l00051"></a>00051
36<a name="l00061"></a><a class="code" href="classCFile.html#ebb1693f8c740d139f553b58874f82c1">00061</a> <span class="keyword">virtual</span> <a class="code" href="classCFile.html#ebb1693f8c740d139f553b58874f82c1" title="Default dtor (virtual).">~CFile</a>()
37<a name="l00062"></a>00062 {};
38<a name="l00063"></a>00063
39<a name="l00073"></a>00073 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classCFile.html#fa8780b6d34045102aff06fceccaf075" title="Pure virtual method (interface). Should read data from filestream.">read</a>(std::ifstream&amp; in) = 0;
40<a name="l00074"></a>00074
41<a name="l00084"></a>00084 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classCFile.html#a77cd4604afac7b3b1384ca15ef4750e" title="Pure virtual method (interface). Should write data to filestream.">write</a>(std::ofstream&amp; out) = 0;
42<a name="l00085"></a>00085
43<a name="l00097"></a>00097 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classCFile.html#3991c5f43fab6365cc82ba80afccd791" title="Pure virtual method (interface). Should delegate the function and its parameters...">callFunc</a>(<span class="keyword">const</span> std::string&amp; func, <span class="keyword">const</span> std::list&lt;std::string&gt;&amp; params) = 0;
44<a name="l00098"></a>00098
45<a name="l00108"></a><a class="code" href="classCFile.html#7a3148cb5797198cd856587bf001445f">00108</a> <span class="keywordtype">bool</span> <a class="code" href="classCFile.html#7a3148cb5797198cd856587bf001445f" title="Check if filetype is supported by this implementation.">supportsType</a>(<span class="keyword">const</span> std::string&amp; type)
46<a name="l00109"></a>00109 {
47<a name="l00110"></a>00110 <span class="keywordflow">return</span> (<a class="code" href="classCFile.html#63719f47953108756b34b6c7e701f536">m_types</a>.find(type) == <a class="code" href="classCFile.html#63719f47953108756b34b6c7e701f536">m_types</a>.end()) ? <span class="keyword">false</span> : <span class="keyword">true</span>;
48<a name="l00111"></a>00111 }
49<a name="l00112"></a>00112
50<a name="l00113"></a>00113 <span class="keyword">protected</span>:
51<a name="l00114"></a>00114 <span class="comment">/* members */</span>
52<a name="l00116"></a><a class="code" href="classCFile.html#63719f47953108756b34b6c7e701f536">00116</a> std::set&lt;std::string&gt; <a class="code" href="classCFile.html#63719f47953108756b34b6c7e701f536">m_types</a>;
53<a name="l00117"></a>00117 };
54<a name="l00118"></a>00118
55<a name="l00119"></a>00119 <span class="preprocessor">#endif</span>
56<a name="l00120"></a>00120 <span class="preprocessor"></span>
57<a name="l00121"></a>00121 <span class="comment">/* vim: set et sw=2 ts=2: */</span>
58</pre></div><hr size="1"><address style="text-align: right;"><small>Generated on Sun Apr 26 12:25:52 2009 for imgsynth by&nbsp;
59<a href="http://www.doxygen.org/index.html">
60<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.3 </small></address>
61</body>
62</html>