summaryrefslogtreecommitdiff
path: root/src/value.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-02-04 19:55:27 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-02-04 19:55:27 -0400
commit2d941730b1c60342be5b108d2d654723b3b7c2cb (patch)
tree6a3f4b7305857e85d2684670492007bafc3668d0 /src/value.h
parent73cf3b01fbd50c3a8a4fd96ff69643c28394d8fe (diff)
downloadfork-ledger-2d941730b1c60342be5b108d2d654723b3b7c2cb.tar.gz
fork-ledger-2d941730b1c60342be5b108d2d654723b3b7c2cb.tar.bz2
fork-ledger-2d941730b1c60342be5b108d2d654723b3b7c2cb.zip
Largely removed all of Ledger's use of global variables, for the REPL's sake.
Diffstat (limited to 'src/value.h')
-rw-r--r--src/value.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/value.h b/src/value.h
index 8ee00a10..17ac4378 100644
--- a/src/value.h
+++ b/src/value.h
@@ -802,9 +802,7 @@ public:
value_t annotated_tag() const;
#endif
- value_t strip_annotations(const bool keep_price = amount_t::keep_price,
- const bool keep_date = amount_t::keep_date,
- const bool keep_tag = amount_t::keep_tag) const;
+ value_t strip_annotations(const keep_details_t& what_to_keep) const;
/**
* Collection-style access methods for SEQUENCE values.
@@ -925,9 +923,11 @@ public:
/**
* Printing methods.
*/
- void dump(std::ostream& out, const int first_width,
- const int latter_width = -1) const;
- void print(std::ostream& out, const bool relaxed = true) const;
+ void print(std::ostream& out,
+ const int first_width,
+ const int latter_width = -1,
+ const optional<string>& date_format = none) const;
+ void dump(std::ostream& out, const bool relaxed = true) const;
/**
* Debugging methods.
@@ -954,7 +954,7 @@ inline string value_context(const value_t& val) {
std::ostringstream buf;
buf << std::right;
buf.width(20);
- val.print(buf);
+ val.dump(buf);
return buf.str();
}