serialize.hh (10861:9141d87c7f71) serialize.hh (10903:022e5d110a22)
1/*
2 * Copyright (c) 2002-2005 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

--- 146 unchanged lines hidden (view full) ---

155 } while (0)
156
157#define SERIALIZE_ARRAY(member, size) \
158 arrayParamOut(os, #member, member, size)
159
160#define UNSERIALIZE_ARRAY(member, size) \
161 arrayParamIn(cp, section, #member, member, size)
162
1/*
2 * Copyright (c) 2002-2005 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

--- 146 unchanged lines hidden (view full) ---

155 } while (0)
156
157#define SERIALIZE_ARRAY(member, size) \
158 arrayParamOut(os, #member, member, size)
159
160#define UNSERIALIZE_ARRAY(member, size) \
161 arrayParamIn(cp, section, #member, member, size)
162
163#define SERIALIZE_CONTAINER(member) \
164 arrayParamOut(os, #member, member)
165
166#define UNSERIALIZE_CONTAINER(member) \
167 arrayParamIn(cp, section, #member, member)
168
163#define SERIALIZE_OBJPTR(objptr) paramOut(os, #objptr, (objptr)->name())
164
165#define UNSERIALIZE_OBJPTR(objptr) \
166 do { \
167 SimObject *sptr; \
168 objParamIn(cp, section, #objptr, sptr); \
169 fromSimObject(objptr, sptr); \
170 } while (0)

--- 173 unchanged lines hidden ---
169#define SERIALIZE_OBJPTR(objptr) paramOut(os, #objptr, (objptr)->name())
170
171#define UNSERIALIZE_OBJPTR(objptr) \
172 do { \
173 SimObject *sptr; \
174 objParamIn(cp, section, #objptr, sptr); \
175 fromSimObject(objptr, sptr); \
176 } while (0)

--- 173 unchanged lines hidden ---