diff options
author | John Wiegley <johnw@newartisans.com> | 2007-05-07 10:25:15 +0000 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2008-04-13 03:38:39 -0400 |
commit | a07e20c14e5ba3597a855276ad9a195343aee42f (patch) | |
tree | 2148a9a8e3038993cca6865a025a582e95f9caac /src/commodity.h | |
parent | 8aada79971b772fda92131053fa03021cfbc625a (diff) | |
download | fork-ledger-a07e20c14e5ba3597a855276ad9a195343aee42f.tar.gz fork-ledger-a07e20c14e5ba3597a855276ad9a195343aee42f.tar.bz2 fork-ledger-a07e20c14e5ba3597a855276ad9a195343aee42f.zip |
Changed write methods to print.
Diffstat (limited to 'src/commodity.h')
-rw-r--r-- | src/commodity.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/commodity.h b/src/commodity.h index 96c39c1b..2ed8b7b4 100644 --- a/src/commodity.h +++ b/src/commodity.h @@ -192,7 +192,7 @@ public: optional<amount_t> value(const optional<moment_t>& moment = optional<moment_t>()); - void write(std::ostream& out) const { + void print(std::ostream& out) const { out << symbol(); } @@ -200,7 +200,7 @@ public: }; inline std::ostream& operator<<(std::ostream& out, const commodity_t& comm) { - comm.write(out); + comm.print(out); return out; } @@ -226,7 +226,7 @@ struct annotation_t : public equality_comparable<annotation_t> tag == rhs.tag); } - void write(std::ostream& out) const { + void print(std::ostream& out) const { out << "price " << (price ? price->to_string() : "NONE") << " " << "date " << (date ? *date : moment_t()) << " " << "tag " << (tag ? *tag : "NONE"); @@ -238,7 +238,7 @@ struct annotation_t : public equality_comparable<annotation_t> }; inline std::ostream& operator<<(std::ostream& out, const annotation_t& details) { - details.write(out); + details.print(out); return out; } |