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">
6 <!-- Generated by Doxygen 1.5.8 -->
7 <div class=
"navigation" id=
"top">
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>
18 <li><a href=
"files.html"><span>File
List
</span></a></li>
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><<span class=
"keyword">class
</span> T
> <span class=
"keyword">class
</span>Array;
35 <a name=
"l00015"></a>00015 <span class=
"keyword">template
</span><<span class=
"keyword">class
</span> K,
<span class=
"keyword">class
</span> V,
<span class=
"keyword">class
</span> H
> <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><<span class=
"keyword">class
</span> T
>
50 <a name=
"l00030"></a>00030 <span class=
"keyword">virtual
</span> Deserializer
& operator
>>(
<span class=
"keyword">const
</span> T * t) =
0;
51 <a name=
"l00031"></a>00031 <span class=
"keyword">template
</span><>
52 <a name=
"l00032"></a>00032 <span class=
"keyword">virtual
</span> Deserializer
& operator
>> <unsigned int
>(
<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><>
54 <a name=
"l00034"></a>00034 <span class=
"keyword">virtual
</span> Deserializer
& operator
>> <int
>(
<span class=
"keyword">const
</span> <span class=
"keywordtype">int
</span> * i) =
0;
55 <a name=
"l00035"></a>00035 <span class=
"keyword">template
</span><>
56 <a name=
"l00036"></a>00036 <span class=
"keyword">virtual
</span> Deserializer
& operator
>> <unsigned long
>(
<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><>
58 <a name=
"l00038"></a>00038 <span class=
"keyword">virtual
</span> Deserializer
& operator
>> <long
>(
<span class=
"keyword">const
</span> <span class=
"keywordtype">long
</span> * l) =
0;
59 <a name=
"l00039"></a>00039 <span class=
"keyword">template
</span><>
60 <a name=
"l00040"></a>00040 <span class=
"keyword">virtual
</span> Deserializer
& operator
>> <float
>(
<span class=
"keyword">const
</span> <span class=
"keywordtype">float
</span> * f) =
0;
61 <a name=
"l00041"></a>00041 <span class=
"keyword">template
</span><>
62 <a name=
"l00042"></a>00042 <span class=
"keyword">virtual
</span> Deserializer
& operator
>> <double
>(
<span class=
"keyword">const
</span> <span class=
"keywordtype">double
</span> * d) =
0;
63 <a name=
"l00043"></a>00043 <span class=
"keyword">template
</span><>
64 <a name=
"l00044"></a>00044 <span class=
"keyword">virtual
</span> Deserializer
& operator
>> <bool
>(
<span class=
"keyword">const
</span> <span class=
"keywordtype">bool
</span> * b) =
0;
65 <a name=
"l00045"></a>00045 <span class=
"keyword">template
</span><<span class=
"keyword">class
</span> T
>
66 <a name=
"l00046"></a>00046 <span class=
"keyword">virtual
</span> Deserializer
& operator
>> <Array
<T
> >(
<span class=
"keyword">const
</span> Array
<T
> * ar) =
0;
67 <a name=
"l00047"></a>00047 <span class=
"keyword">template
</span><>
68 <a name=
"l00048"></a>00048 <span class=
"keyword">virtual
</span> Deserializer
& operator
>>(
<span class=
"keyword">const
</span> String * s) =
0;
69 <a name=
"l00049"></a>00049 <span class=
"keyword">template
</span><<span class=
"keyword">class
</span> K,
<span class=
"keyword">class
</span> H,
<span class=
"keyword">class
</span> V
>
70 <a name=
"l00050"></a>00050 <span class=
"keyword">virtual
</span> Deserializer
& <span class=
"keyword">operator
</span>>> <Dictionary
<K,H,V
> >
71 <a name=
"l00051"></a>00051 (
<span class=
"keyword">const
</span> Dictionary
<K, H, V
> * dict) =
0;
72 <a name=
"l00052"></a>00052 <span class=
"keyword">virtual
</span> Deserializer
& operator
>>(
<span class=
"keyword">const
</span> _serkey
& key) =
0;
73 <a name=
"l00053"></a>00053
74 <a name=
"l00054"></a>00054 <span class=
"keyword">template
</span><>
75 <a name=
"l00055"></a>00055 <span class=
"keyword">virtual
</span> Deserializer
& <span class=
"keyword">operator
</span>>> <SerializedObject
>
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
84 <hr size=
"1" class=
"unhidden"><address style=
"text-align: right;"><small>
85 Documentation for LibSylph generated by
<a href=
"http://www.doxygen.org/index.html">Doxygen
</a> 1.5.8</small></address>