From a38ed141c1f33ecdad99b322acb1ae07b30a5da2 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Fri, 18 May 2012 01:31:01 -0600 Subject: Switched to Boost.PropertyTree for XML generation --- src/views.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/views.h') diff --git a/src/views.h b/src/views.h index f9a007b7..22bc1dd5 100644 --- a/src/views.h +++ b/src/views.h @@ -182,7 +182,7 @@ public: r_account_ptr create_account(account_t * account = NULL); r_account_ptr create_account(const std::string& name); - friend void to_xml(std::ostream& out, r_journal_ptr journal); + friend void put_journal(property_tree::ptree& pt, r_journal_ptr journal); }; class r_item_t : public r_base_t @@ -267,7 +267,7 @@ public: const string& name); friend class r_journal_t; - friend void to_xml(std::ostream& out, r_item_ptr item); + friend void put_item(property_tree::ptree& pt, r_item_ptr journal); }; class r_xact_t : public r_item_t @@ -315,7 +315,7 @@ public: string payee() const; friend class r_journal_t; - friend void to_xml(std::ostream& out, r_xact_ptr xact); + friend void put_xact(property_tree::ptree& pt, r_xact_ptr journal); }; class r_post_t : public r_item_t @@ -371,7 +371,7 @@ public: optional checkout() const; friend class r_journal_t; - friend void to_xml(std::ostream& out, r_post_ptr post); + friend void put_post(property_tree::ptree& pt, r_post_ptr journal); }; typedef std::map r_accounts_map; @@ -434,7 +434,7 @@ public: } friend class r_journal_t; - friend void to_xml(std::ostream& out, r_account_ptr account); + friend void put_account(property_tree::ptree& pt, r_account_ptr journal); }; template -- cgit v1.2.3