summaryrefslogtreecommitdiff
path: root/src/journal.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/journal.h')
-rw-r--r--src/journal.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/journal.h b/src/journal.h
index 43309590..809da25d 100644
--- a/src/journal.h
+++ b/src/journal.h
@@ -110,6 +110,22 @@ public:
bool strict = false);
bool valid() const;
+
+#if defined(HAVE_BOOST_SERIALIZATION)
+private:
+ /** Serialization. */
+
+ friend class boost::serialization::access;
+
+ template<class Archive>
+ void serialize(Archive & ar, const unsigned int /* version */) {
+ ar & master;
+ ar & basket;
+ ar & xacts;
+ ar & auto_xacts;
+ ar & period_xacts;
+ }
+#endif // HAVE_BOOST_SERIALIZATION
};
} // namespace ledger