summaryrefslogtreecommitdiff
path: root/lib/persistance.h
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2021-04-17 23:59:42 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2021-11-07 16:41:37 +0000
commit1d8a75f050f54ccb837ac13530d53c03fca38798 (patch)
treee2fda09ddf8e0f9b0e917da7d34e0fa056025a9b /lib/persistance.h
parentSecond swing persistance (diff)
downloadilt-1d8a75f050f54ccb837ac13530d53c03fca38798.tar.bz2
ilt-1d8a75f050f54ccb837ac13530d53c03fca38798.tar.xz
ilt-1d8a75f050f54ccb837ac13530d53c03fca38798.zip
Move json persistance into lib
Diffstat (limited to 'lib/persistance.h')
-rw-r--r--lib/persistance.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/persistance.h b/lib/persistance.h
index 75222e0..92366f2 100644
--- a/lib/persistance.h
+++ b/lib/persistance.h
@@ -198,4 +198,7 @@ namespace Persistanace {
};
}
+#define STORE_TYPE store.persistType(typeid(*this))
+#define STORE_MEMBER(mbr) store.persistValue(#mbr, mbr)
+
#endif