diff options
author | John Wiegley <johnw@newartisans.com> | 2012-05-18 01:31:01 -0600 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2012-05-18 01:31:01 -0600 |
commit | a38ed141c1f33ecdad99b322acb1ae07b30a5da2 (patch) | |
tree | c6555946e2575a6bcb0ae7642673257954e38ac1 /src/views.h | |
parent | 3c3bda19d62eed165b9191dbf1adcb3e7c975356 (diff) | |
download | fork-ledger-a38ed141c1f33ecdad99b322acb1ae07b30a5da2.tar.gz fork-ledger-a38ed141c1f33ecdad99b322acb1ae07b30a5da2.tar.bz2 fork-ledger-a38ed141c1f33ecdad99b322acb1ae07b30a5da2.zip |
Switched to Boost.PropertyTree for XML generation
Diffstat (limited to 'src/views.h')
-rw-r--r-- | src/views.h | 10 |
1 files changed, 5 insertions, 5 deletions
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<datetime_t> 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<string, r_account_ptr> 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 <typename PostsIterator> |