sim: Add serialization macros for std containers

This commit is contained in:
Andreas Sandberg 2015-07-07 09:51:03 +01:00
parent 777cc71c4a
commit 7cd5db8c6d

View file

@ -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) \