Fixed stdlib error for free() on pointer allocated with gc_alloc()
[libs.git] / docs / html / _deserializer_8h-source.html
blobe480c981c4ca364380784dd87e7b148111785dac
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>LibSylph: Sylph/Core/Serialization/Deserializer.h Source File</title>
4 <link href="doxygen.css" rel="stylesheet" type="text/css">
5 </head><body>
6 <!-- Generated by Doxygen 1.5.8 -->
7 <div class="navigation" id="top">
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 <div class="tabs">
17 <ul>
18 <li><a href="files.html"><span>File&nbsp;List</span></a></li>
19 </ul>
20 </div>
21 <h1>Sylph/Core/Serialization/Deserializer.h</h1><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/* </span>
22 <a name="l00002"></a>00002 <span class="comment"> * File: Deserializer.h</span>
23 <a name="l00003"></a>00003 <span class="comment"> * Author: frank</span>
24 <a name="l00004"></a>00004 <span class="comment"> *</span>
25 <a name="l00005"></a>00005 <span class="comment"> * Created on 27 maart 2009, 16:27</span>
26 <a name="l00006"></a>00006 <span class="comment"> */</span>
27 <a name="l00007"></a>00007
28 <a name="l00008"></a>00008 <span class="preprocessor">#ifndef DESERIALIZER_H_</span>
29 <a name="l00009"></a>00009 <span class="preprocessor"></span><span class="preprocessor">#define DESERIALIZER_H_</span>
30 <a name="l00010"></a>00010 <span class="preprocessor"></span>
31 <a name="l00011"></a>00011 <span class="preprocessor">#include "../Object.h"</span>
32 <a name="l00012"></a>00012
33 <a name="l00013"></a>00013 SYLPH_BEGIN_NAMESPACE
34 <a name="l00014"></a>00014 <span class="keyword">template</span>&lt;<span class="keyword">class</span> T&gt; <span class="keyword">class </span>Array;
35 <a name="l00015"></a>00015 <span class="keyword">template</span>&lt;<span class="keyword">class</span> K, <span class="keyword">class</span> V, <span class="keyword">class</span> H&gt; <span class="keyword">class </span>Dictionary;
36 <a name="l00016"></a>00016 <span class="keyword">class </span>String;
37 <a name="l00017"></a>00017 <span class="keyword">class </span>Object;
38 <a name="l00018"></a>00018 <span class="keyword">class </span>SerializedObject;
39 <a name="l00019"></a>00019 <span class="keyword">class </span>_serkey;
40 <a name="l00020"></a>00020
41 <a name="l00021"></a>00021 SYLPH_PUBLIC
42 <a name="l00022"></a>00022 <span class="keyword">class </span>Deserializer : <span class="keyword">public</span> Object {
43 <a name="l00023"></a>00023 <span class="keyword">public</span>:
44 <a name="l00024"></a>00024
45 <a name="l00025"></a>00025 Deserializer() {
46 <a name="l00026"></a>00026 }
47 <a name="l00027"></a>00027 <span class="keyword">virtual</span> ~Deserializer();
48 <a name="l00028"></a>00028
49 <a name="l00029"></a>00029 <span class="keyword">template</span>&lt;<span class="keyword">class</span> T&gt;
50 <a name="l00030"></a>00030 <span class="keyword">virtual</span> Deserializer &amp; operator&gt;&gt;(<span class="keyword">const</span> T * t) = 0;
51 <a name="l00031"></a>00031 <span class="keyword">template</span>&lt;&gt;
52 <a name="l00032"></a>00032 <span class="keyword">virtual</span> Deserializer &amp; operator&gt;&gt; &lt;unsigned int&gt;(<span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> * i) = 0;
53 <a name="l00033"></a>00033 <span class="keyword">template</span>&lt;&gt;
54 <a name="l00034"></a>00034 <span class="keyword">virtual</span> Deserializer &amp; operator&gt;&gt; &lt;int&gt;(<span class="keyword">const</span> <span class="keywordtype">int</span> * i) = 0;
55 <a name="l00035"></a>00035 <span class="keyword">template</span>&lt;&gt;
56 <a name="l00036"></a>00036 <span class="keyword">virtual</span> Deserializer &amp; operator&gt;&gt; &lt;unsigned long&gt;(<span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> * l) = 0;
57 <a name="l00037"></a>00037 <span class="keyword">template</span>&lt;&gt;
58 <a name="l00038"></a>00038 <span class="keyword">virtual</span> Deserializer &amp; operator&gt;&gt; &lt;long&gt;(<span class="keyword">const</span> <span class="keywordtype">long</span> * l) = 0;
59 <a name="l00039"></a>00039 <span class="keyword">template</span>&lt;&gt;
60 <a name="l00040"></a>00040 <span class="keyword">virtual</span> Deserializer &amp; operator&gt;&gt; &lt;float&gt;(<span class="keyword">const</span> <span class="keywordtype">float</span> * f) = 0;
61 <a name="l00041"></a>00041 <span class="keyword">template</span>&lt;&gt;
62 <a name="l00042"></a>00042 <span class="keyword">virtual</span> Deserializer &amp; operator&gt;&gt; &lt;double&gt;(<span class="keyword">const</span> <span class="keywordtype">double</span> * d) = 0;
63 <a name="l00043"></a>00043 <span class="keyword">template</span>&lt;&gt;
64 <a name="l00044"></a>00044 <span class="keyword">virtual</span> Deserializer &amp; operator&gt;&gt; &lt;bool&gt;(<span class="keyword">const</span> <span class="keywordtype">bool</span> * b) = 0;
65 <a name="l00045"></a>00045 <span class="keyword">template</span>&lt;<span class="keyword">class</span> T&gt;
66 <a name="l00046"></a>00046 <span class="keyword">virtual</span> Deserializer &amp; operator&gt;&gt; &lt;Array&lt;T&gt; &gt;(<span class="keyword">const</span> Array&lt;T&gt; * ar) = 0;
67 <a name="l00047"></a>00047 <span class="keyword">template</span>&lt;&gt;
68 <a name="l00048"></a>00048 <span class="keyword">virtual</span> Deserializer &amp; operator&gt;&gt;(<span class="keyword">const</span> String * s) = 0;
69 <a name="l00049"></a>00049 <span class="keyword">template</span>&lt;<span class="keyword">class</span> K, <span class="keyword">class</span> H, <span class="keyword">class</span> V&gt;
70 <a name="l00050"></a>00050 <span class="keyword">virtual</span> Deserializer &amp; <span class="keyword">operator</span>&gt;&gt; &lt;Dictionary&lt;K,H,V&gt; &gt;
71 <a name="l00051"></a>00051 (<span class="keyword">const</span> Dictionary&lt;K, H, V&gt; * dict) = 0;
72 <a name="l00052"></a>00052 <span class="keyword">virtual</span> Deserializer &amp; operator&gt;&gt;(<span class="keyword">const</span> _serkey &amp; key) = 0;
73 <a name="l00053"></a>00053
74 <a name="l00054"></a>00054 <span class="keyword">template</span>&lt;&gt;
75 <a name="l00055"></a>00055 <span class="keyword">virtual</span> Deserializer &amp; <span class="keyword">operator</span>&gt;&gt; &lt;SerializedObject&gt;
76 <a name="l00056"></a>00056 (<span class="keyword">const</span> SerializedObject * obj) = 0;
77 <a name="l00057"></a>00057
78 <a name="l00058"></a>00058 };
79 <a name="l00059"></a>00059 SYLPH_END_NAMESPACE
80 <a name="l00060"></a>00060
81 <a name="l00061"></a>00061 <span class="preprocessor">#endif </span><span class="comment">/* DESERIALIZER_H_ */</span>
82 <a name="l00062"></a>00062
83 </pre></div></div>
84 <hr size="1" class="unhidden"><address style="text-align: right;"><small>
85 Documentation for LibSylph generated by&nbsp;<a href="http://www.doxygen.org/index.html">Doxygen</a> 1.5.8</small></address>
86 </body>
87 </html>