sim: Add serialization macros for std containers
This commit is contained in:
parent
777cc71c4a
commit
7cd5db8c6d
1 changed files with 6 additions and 0 deletions
|
@ -160,6 +160,12 @@ void fromSimObject(T &t, SimObject *s)
|
|||
#define UNSERIALIZE_ARRAY(member, size) \
|
||||
arrayParamIn(cp, section, #member, member, size)
|
||||
|
||||
#define SERIALIZE_CONTAINER(member) \
|
||||
arrayParamOut(os, #member, member)
|
||||
|
||||
#define UNSERIALIZE_CONTAINER(member) \
|
||||
arrayParamIn(cp, section, #member, member)
|
||||
|
||||
#define SERIALIZE_OBJPTR(objptr) paramOut(os, #objptr, (objptr)->name())
|
||||
|
||||
#define UNSERIALIZE_OBJPTR(objptr) \
|
||||
|
|
Loading…
Reference in a new issue