summaryrefslogtreecommitdiff
path: root/src/annotate.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2012-05-18 01:31:01 -0600
committerJohn Wiegley <johnw@newartisans.com>2012-05-18 01:31:01 -0600
commita38ed141c1f33ecdad99b322acb1ae07b30a5da2 (patch)
treec6555946e2575a6bcb0ae7642673257954e38ac1 /src/annotate.h
parent3c3bda19d62eed165b9191dbf1adcb3e7c975356 (diff)
downloadfork-ledger-a38ed141c1f33ecdad99b322acb1ae07b30a5da2.tar.gz
fork-ledger-a38ed141c1f33ecdad99b322acb1ae07b30a5da2.tar.bz2
fork-ledger-a38ed141c1f33ecdad99b322acb1ae07b30a5da2.zip
Switched to Boost.PropertyTree for XML generation
Diffstat (limited to 'src/annotate.h')
-rw-r--r--src/annotate.h29
1 files changed, 1 insertions, 28 deletions
diff --git a/src/annotate.h b/src/annotate.h
index 37ee0685..1e62e2fa 100644
--- a/src/annotate.h
+++ b/src/annotate.h
@@ -124,34 +124,7 @@ private:
#endif // HAVE_BOOST_SERIALIZATION
};
-inline void to_xml(std::ostream& out, const annotation_t& details)
-{
- push_xml x(out, "annotation");
-
- if (details.price)
- {
- push_xml y(out, "price");
- to_xml(out, *details.price);
- }
-
- if (details.date)
- {
- push_xml y(out, "date");
- to_xml(out, *details.date, false);
- }
-
- if (details.tag)
- {
- push_xml y(out, "tag");
- out << y.guard(*details.tag);
- }
-
- if (details.value_expr)
- {
- push_xml y(out, "value-expr");
- out << y.guard(details.value_expr->text());
- }
-}
+void put_annotation(property_tree::ptree& pt, const annotation_t& details);
struct keep_details_t
{