comparison orange/serialization/archives/Archive.d @ 33:4fea56a5849f experimental

Now both internal and external pointers work.
author Jacob Carlborg <doob@me.com>
date Sun, 31 Jul 2011 17:56:44 +0200
parents c422ff6477dd
children 068e853b9c07
comparison
equal deleted inserted replaced
32:9df3b7a46a51 33:4fea56a5849f
77 77
78 void archiveBaseClass (string type, string key, Id id); 78 void archiveBaseClass (string type, string key, Id id);
79 void archiveNull (string type, string key); 79 void archiveNull (string type, string key);
80 void archiveObject (string runtimeType, string type, string key, Id id, void delegate () dg); 80 void archiveObject (string runtimeType, string type, string key, Id id, void delegate () dg);
81 void archivePointer (string key, Id id, void delegate () dg); 81 void archivePointer (string key, Id id, void delegate () dg);
82 void archivePointer (Id pointerId, Id pointeeId); 82 void archivePointer (Id pointeeId, string key, Id id);
83 void archiveReference (string key, Id id); 83 void archiveReference (string key, Id id);
84 void archiveSlice (Slice slice, Id sliceId, Id arrayId); 84 void archiveSlice (Slice slice, Id sliceId, Id arrayId);
85 void archiveStruct (string type, string key, Id id, void delegate () dg); 85 void archiveStruct (string type, string key, Id id, void delegate () dg);
86 void archiveTypedef (string type, string key, Id id, void delegate () dg); 86 void archiveTypedef (string type, string key, Id id, void delegate () dg);
87 87
88 void archive (string value, string key, Id id); 88 void archive (string value, string key, Id id);
89 void archive (wstring value, string key, Id id); 89 void archive (wstring value, string key, Id id);
90 void archive (dstring value, string key, Id id); 90 void archive (dstring value, string key, Id id);
91 void archive (bool value, string key, Id id); 91 void archive (bool value, string key, Id id);
92 void archive (byte value, string key, Id id); 92 void archive (byte value, string key, Id id);
93 //void archive (cdouble value, string key, Id id); // currently not suppported by to!() 93 //void archive (cdouble value, string key, Id id); // currently not supported by to!()
94 //void archive (cent value, string key, Id id); 94 //void archive (cent value, string key, Id id);
95 //void archive (cfloat value, string key, Id id); // currently not suppported by to!() 95 //void archive (cfloat value, string key, Id id); // currently not supported by to!()
96 void archive (char value, string key, Id id); // currently not implemented but a reserved keyword 96 void archive (char value, string key, Id id); // currently not implemented but a reserved keyword
97 //void archive (creal value, string key, Id id); // currently not suppported by to!() 97 //void archive (creal value, string key, Id id); // currently not supported by to!()
98 void archive (dchar value, string key, Id id); 98 void archive (dchar value, string key, Id id);
99 void archive (double value, string key, Id id); 99 void archive (double value, string key, Id id);
100 void archive (float value, string key, Id id); 100 void archive (float value, string key, Id id);
101 //void archive (idouble value, string key, Id id); // currently not suppported by to!() 101 //void archive (idouble value, string key, Id id); // currently not supported by to!()
102 //void archive (ifloat value, string key, Id id); // currently not suppported by to!() 102 //void archive (ifloat value, string key, Id id); // currently not supported by to!()
103 void archive (int value, string key, Id id); 103 void archive (int value, string key, Id id);
104 //void archive (ireal value, string key, Id id); // currently not suppported by to!() 104 //void archive (ireal value, string key, Id id); // currently not supported by to!()
105 void archive (long value, string key, Id id); 105 void archive (long value, string key, Id id);
106 void archive (real value, string key, Id id); 106 void archive (real value, string key, Id id);
107 void archive (short value, string key, Id id); 107 void archive (short value, string key, Id id);
108 void archive (ubyte value, string key, Id id); 108 void archive (ubyte value, string key, Id id);
109 //void archive (ucent value, string key, Id id); // currently not implemented but a reserved keyword 109 //void archive (ucent value, string key, Id id); // currently not implemented but a reserved keyword
147 string unarchiveString (Id id); 147 string unarchiveString (Id id);
148 wstring unarchiveWstring (Id id); 148 wstring unarchiveWstring (Id id);
149 dstring unarchiveDstring (Id id); 149 dstring unarchiveDstring (Id id);
150 bool unarchiveBool (string key); 150 bool unarchiveBool (string key);
151 byte unarchiveByte (string key); 151 byte unarchiveByte (string key);
152 //cdouble unarchiveCdouble (string key); // currently not suppported by to!() 152 //cdouble unarchiveCdouble (string key); // currently not supported by to!()
153 //cent unarchiveCent (string key); // currently not implemented but a reserved keyword 153 //cent unarchiveCent (string key); // currently not implemented but a reserved keyword
154 //cfloat unarchiveCfloat (string key); // currently not suppported by to!() 154 //cfloat unarchiveCfloat (string key); // currently not supported by to!()
155 char unarchiveChar (string key); // currently not implemented but a reserved keyword 155 char unarchiveChar (string key); // currently not implemented but a reserved keyword
156 //creal unarchiveCreal (string key); // currently not suppported by to!() 156 //creal unarchiveCreal (string key); // currently not supported by to!()
157 dchar unarchiveDchar (string key); 157 dchar unarchiveDchar (string key);
158 double unarchiveDouble (string key); 158 double unarchiveDouble (string key);
159 float unarchiveFloat (string key); 159 float unarchiveFloat (string key);
160 //idouble unarchiveIdouble (string key); // currently not suppported by to!() 160 //idouble unarchiveIdouble (string key); // currently not supported by to!()
161 //ifloat unarchiveIfloat (string key); // currently not suppported by to!()*/ 161 //ifloat unarchiveIfloat (string key); // currently not supported by to!()*/
162 int unarchiveInt (string key); 162 int unarchiveInt (string key);
163 //ireal unarchiveIreal (string key); // currently not suppported by to!() 163 int unarchiveInt (Id id);
164 //ireal unarchiveIreal (string key); // currently not supported by to!()
164 long unarchiveLong (string key); 165 long unarchiveLong (string key);
165 real unarchiveReal (string key); 166 real unarchiveReal (string key);
166 short unarchiveShort (string key); 167 short unarchiveShort (string key);
167 ubyte unarchiveUbyte (string key); 168 ubyte unarchiveUbyte (string key);
168 //ucent unarchiveCcent (string key); // currently not implemented but a reserved keyword 169 //ucent unarchiveCcent (string key); // currently not implemented but a reserved keyword