From a07e20c14e5ba3597a855276ad9a195343aee42f Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Mon, 7 May 2007 10:25:15 +0000 Subject: Changed write methods to print. --- src/commodity.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/commodity.h') 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 value(const optional& moment = optional()); - 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 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 }; inline std::ostream& operator<<(std::ostream& out, const annotation_t& details) { - details.write(out); + details.print(out); return out; } -- cgit v1.2.3