diff options
author | John Wiegley <johnw@newartisans.com> | 2009-01-28 20:49:44 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-01-28 20:49:44 -0400 |
commit | 094c64b67cedc080bf8dcf218105f31f5b479296 (patch) | |
tree | 661ce7fec77219948703f143ad1f9680cede5973 /src/commodity.h | |
parent | e851c02d2747be0acc336bc278da9e0460b75738 (diff) | |
download | fork-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/commodity.h')
-rw-r--r-- | src/commodity.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/commodity.h b/src/commodity.h index 38fdc9ba..7a42ca67 100644 --- a/src/commodity.h +++ b/src/commodity.h @@ -359,6 +359,9 @@ public: void read(char *& data); void write(std::ostream& out) const; + void read_xml(std::istream& in); + void write_xml(std::ostream& out, const int depth = 0) const; + bool valid() const; }; |