summaryrefslogtreecommitdiff
path: root/src/amount.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-01-28 20:49:44 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-01-28 20:49:44 -0400
commit094c64b67cedc080bf8dcf218105f31f5b479296 (patch)
tree661ce7fec77219948703f143ad1f9680cede5973 /src/amount.h
parente851c02d2747be0acc336bc278da9e0460b75738 (diff)
downloadfork-ledger-094c64b67cedc080bf8dcf218105f31f5b479296.tar.gz
fork-ledger-094c64b67cedc080bf8dcf218105f31f5b479296.tar.bz2
fork-ledger-094c64b67cedc080bf8dcf218105f31f5b479296.zip
amount_t and commodity_t objects can now stream themselves to XML.
Diffstat (limited to 'src/amount.h')
-rw-r--r--src/amount.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/amount.h b/src/amount.h
index a9e60be3..f28980f0 100644
--- a/src/amount.h
+++ b/src/amount.h
@@ -703,6 +703,9 @@ public:
char ** pool_next = NULL);
void write(std::ostream& out, unsigned int index = 0) const;
+ void read_xml(std::istream& in);
+ void write_xml(std::ostream& out, const int depth = 0) const;
+
/**
* Debugging methods. There are two methods defined to help with
* debugging: