From 7cd5db8c6d7ea4ad23da5c9799a28e2224fab449 Mon Sep 17 00:00:00 2001 From: Andreas Sandberg Date: Tue, 7 Jul 2015 09:51:03 +0100 Subject: [PATCH] sim: Add serialization macros for std containers --- src/sim/serialize.hh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/sim/serialize.hh b/src/sim/serialize.hh index 888dba614..2fb7cddd0 100644 --- a/src/sim/serialize.hh +++ b/src/sim/serialize.hh @@ -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) \ -- 2.30.2