summaryrefslogtreecommitdiff
path: root/src/balance.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/balance.cc')
-rw-r--r--src/balance.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/balance.cc b/src/balance.cc
index 1c096e01..59eb4d92 100644
--- a/src/balance.cc
+++ b/src/balance.cc
@@ -299,4 +299,12 @@ void balance_t::print(std::ostream& out,
}
}
+void to_xml(std::ostream& out, const balance_t& bal)
+{
+ push_xml x(out, "balance");
+
+ foreach (const balance_t::amounts_map::value_type& pair, bal.amounts)
+ to_xml(out, pair.second);
+}
+
} // namespace ledger