summaryrefslogtreecommitdiff
path: root/src/balpair.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-02-01 01:48:07 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-02-01 01:48:07 -0400
commit9f8997f1b52f55225c76cf92461a05940d71a9e7 (patch)
tree180e1d7d9e1692234e3242f66f7e324c0ba32907 /src/balpair.h
parentcac7d02dd8fa595722faace8aa84be54b49e554b (diff)
downloadfork-ledger-9f8997f1b52f55225c76cf92461a05940d71a9e7.tar.gz
fork-ledger-9f8997f1b52f55225c76cf92461a05940d71a9e7.tar.bz2
fork-ledger-9f8997f1b52f55225c76cf92461a05940d71a9e7.zip
Values can now be streamed to XML, and all the types they refer to.
Diffstat (limited to 'src/balpair.h')
-rw-r--r--src/balpair.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/balpair.h b/src/balpair.h
index d96792f0..38e58cf9 100644
--- a/src/balpair.h
+++ b/src/balpair.h
@@ -343,6 +343,15 @@ public:
return balance_t::operator==(val);
}
+ /** @name XML Serialization
+ */
+ /*@{*/
+
+ void read_xml(std::istream& in);
+ void write_xml(std::ostream& out, const int depth = 0) const;
+
+ /*@}*/
+
/**
* Debugging methods. There is only one method specifically for
* balance pairs to help with debugging: