8template <
typename TYPE >
11template <
typename TYPE >
17 ::file pfile =
file()->get_file(
"C:\\window.window");
45 virtual void read(
char & i) {}
46 virtual void read(
string & i) {}
48 virtual void write(
const char & i) {}
49 virtual void write(const ::string & str) {}
51 template <
typename TYPE >
52 void default_exchange(TYPE & t) { is_loading() ? read(t) : write(t); }
54 virtual void exchange(const ::atom &
atom,
char & i) { default_exchange(i); }
55 virtual void exchange(const ::atom &
atom,
string & str) { default_exchange(str); }
59 template <
typename OBJECT >
64 write_object(
atom, pparticle.m_p);
68 pparticle = read_object(
atom);
73 virtual void write_object(const ::atom &
atom, const ::atom & idFactory,
::particle * pparticle)
75 exchange(
"id", idFactory);
76 exchange(
"", pparticle);
79 virtual ::pointer<::matter>read_object(const ::atom &
atom)
82 exchange(
"id", idFactory);
83 auto pparticle = __id_create<::matter>(idFactory);
84 exchange(
"", pparticle);
96 ::payload & payload();
98 virtual void read(
char & i) {}
99 virtual void read(
string & i) {}
101 virtual void write(
const char & i) {}
102 virtual void write(const ::string & str) {}
104 template <
typename TYPE >
105 void default_exchange(const ::atom &
atom, TYPE & t) { is_loading() ? t =
operator[
atom] :
operator[
atom] = t; }
107 virtual void exchange(const ::atom &
atom,
char & i) { default_exchange(
atom, i); }
108 virtual void exchange(const ::atom &
atom,
string & str) { default_exchange(
atom, str); }
115 virtual void write_object(const ::atom &
atom, const ::atom & idFactory,
::particle * pparticle)
override
118 stream.exchange(
"id", idFactory);
119 stream.exchange(
"", pparticle);
122 virtual ::pointer<::contex_object>read_object(const ::atom &
atom)
override
126 stream.exchange(
"id", idFactory);
127 auto pparticle = __id_create<::matter>(idFactory);
128 stream.exchange(
"", pparticle);
149 virtual public matter
158 virtual void exchange(
stream & s);
162#define __EXCHANGE(xxx) stream.exchange(__STRING(xxx), m_##xxx)
163#define __TYPE_EXCHANGE(xxx) stream.exchange(__STRING(xxx), t.m_##xxx)
169 __EXCHANGE(iVisible);
170 __EXCHANGE(strTitle);
172 __EXCHANGE(pparticle);
183 exchange(atom, value) read / write value
186 m_pstream->write(atom value)
188 m_pstream->read(atom, value)
192 exchange(value) read / write value
195 m_pstream->write(value)
197 m_pstream->read(value)
206 read(atom,
char)
throw not_implemented;
207 read(atom,
short)
throw not_implemented;
208 read(atom,
int)
throw not_implemented;
209 read(atom,
long long)
throw not_implemented;
210 read(atom,
unsigned char)
throw not_implemented;
211 read(atom,
unsigned short)
throw not_implemented;
212 read(atom,
unsigned int)
throw not_implemented;
213 read(atom,
unsigned long long)
throw not_implemented;
215 read(
char)
throw not_implemented;
216 read(
short)
throw not_implemented;
217 read(
int)
throw not_implemented;
218 read(
long long)
throw not_implemented;
219 read(
unsigned char)
throw not_implemented;
220 read(
unsigned short)
throw not_implemented;
221 read(
unsigned int)
throw not_implemented;
222 read(
unsigned long long)
throw not_implemented;
224 write(atom,
char)
throw not_implemented;
225 write(atom,
short)
throw not_implemented;
226 write(atom,
int)
throw not_implemented;
227 write(atom,
long long)
throw not_implemented;
228 write(atom,
unsigned char)
throw not_implemented;
229 write(atom,
unsigned short)
throw not_implemented;
230 write(atom,
unsigned int)
throw not_implemented;
231 write(atom,
unsigned long long)
throw not_implemented;
233 write(
char)
throw not_implemented;
234 write(
short)
throw not_implemented;
235 write(
int)
throw not_implemented;
236 write(
long long)
throw not_implemented;
237 write(
unsigned char)
throw not_implemented;
238 write(
unsigned short)
throw not_implemented;
239 write(
unsigned int)
throw not_implemented;
240 write(
unsigned long long)
throw not_implemented;
250 read(atom,
char) read(
char)
251 read(atom,
short) read(
short)
252 read(atom,
int) read(
int)
253 read(atom,
long long) read(
long long)
254 read(atom,
unsigned char) read(
unsigned char)
255 read(atom,
unsigned short) read(
unsigned short)
256 read(atom,
unsigned int) read(
unsigned int)
257 read(atom,
unsigned long long) read(
unsigned long long)
259 read(
char) m_pfile->read(
char)
260 read(
short) m_pfile->read(
short)
261 read(
int) m_pfile->read(
int)
262 read(
long long) m_pfile->read(
long long)
263 read(
unsigned char) m_pfile->read(
unsigned char)
264 read(
unsigned short) m_pfile->read(
unsigned short)
265 read(
unsigned int) m_pfile->read(
unsigned int)
266 read(
unsigned long long) m_pfile->read(
unsigned long long)
268 write(atom,
char) write(
char)
269 write(atom,
short) write(
short)
270 write(atom,
int) write(
int)
271 write(atom,
long long) write(
long long)
272 write(atom,
unsigned char) write(
unsigned char)
273 write(atom,
unsigned short) write(
unsigned short)
274 write(atom,
unsigned int) write(
unsigned int)
275 write(atom,
unsigned long long) write(
unsigned long long)
277 write(
char) m_pfile->write(
char)
278 write(
short) m_pfile->write(
short)
279 write(
int) m_pfile->write(
int)
280 write(
long long) m_pfile->write(
long long)
281 write(
unsigned char) m_pfile->write(
unsigned char)
282 write(
unsigned short) m_pfile->write(
unsigned short)
283 write(
unsigned int) m_pfile->write(
unsigned int)
284 write(
unsigned long long) m_pfile->write(
unsigned long long)
293 write(atom,
char) write(
char)
294 write(atom,
short) write(
short)
295 write(atom,
int) write(
int)
296 write(atom,
long long) write(
long long)
297 write(atom,
unsigned char) write(
unsigned char)
298 write(atom,
unsigned short) write(
unsigned short)
299 write(atom,
unsigned int) write(
unsigned int)
300 write(atom,
unsigned long long) write(
unsigned long long)
302 write(
char) m_pfile->write(
char)
303 write(
short) m_pfile->write(
short)
304 write(
int) m_pfile->write(
int)
305 write(
long long) m_pfile->write(
long long)
306 write(
unsigned char) m_pfile->write(
unsigned char)
307 write(
unsigned short) m_pfile->write(
unsigned short)
308 write(
unsigned int) m_pfile->write(
unsigned int)
309 write(
unsigned long long) m_pfile->write(
unsigned long long)
315 template <
typename CONTAINER >
320 read(atom,
char)
char = m_ppayload->operator[](atom);
321 read(atom,
short)
short = m_ppayload->operator[](atom);
322 read(atom,
int)
int = m_ppayload->operator[](atom);
323 read(atom,
long long)
long long = m_ppayload->operator[](atom);
324 read(atom,
unsigned char)
unsigned char = m_ppayload->operator[](atom);
325 read(atom,
unsigned short)
unsigned short = m_ppayload->operator[](atom);
326 read(atom,
unsigned int)
unsigned int = m_ppayload->operator[](atom);
327 read(atom,
unsigned long long)
unsigned long long = m_ppayload->operator[](atom);
329 read(
char)
char = *m_ppayload
330 read(
short)
short = *m_ppayload
331 read(
int)
int = *m_ppayload
332 read(
long long)
long long = *m_ppayload
333 read(
unsigned char) uch = *m_ppayload
334 read(
unsigned short)
unsigned short = *m_ppayload
335 read(
unsigned int)
unsigned int = *m_ppayload
336 read(
unsigned long long)
unsigned long long = *m_ppayload
338 write(atom,
char) write(
char)
339 write(atom,
short) write(
short)
340 write(atom,
int) write(
int)
341 write(atom,
long long) write(
long long)
342 write(atom,
unsigned char) write(
unsigned char)
343 write(atom,
unsigned short) write(
unsigned short)
344 write(atom,
unsigned int) write(
unsigned int)
345 write(atom,
unsigned long long) write(
unsigned long long)
347 write(
char) m_pfile->write(
char)
348 write(
short) m_pfile->write(
short)
349 write(
int) m_pfile->write(
int)
350 write(
long long) m_pfile->write(
long long)
351 write(
unsigned char) m_pfile->write(
unsigned char)
352 write(
unsigned short) m_pfile->write(
unsigned short)
353 write(
unsigned int) m_pfile->write(
unsigned int)
354 write(
unsigned long long) m_pfile->write(
unsigned long long)
361 stream & operator >> (stream & stream, matter & o)
366 e.defer_set_loading();
372 stream & operator >> (stream & s, matter & o)
380 window new_frame_window()
382 return __allocate frame_window();
Definition ___serialization_draft.h:93
Definition ___serialization_draft.h:42
Definition ___serialization_draft.h:150
Definition filesystem.h:16