diff options
author | John Wiegley <johnw@newartisans.com> | 2010-06-07 08:16:02 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2010-06-07 08:32:13 -0400 |
commit | a4d4f9979486eb82c05bd032e1452c2fd400249f (patch) | |
tree | 7451a16c967f4dbe32122bd20f96dc5e6b4ad231 /src/amount.h | |
parent | 8bd362b5d17782cf8fa5317017a1c5d73d76f1b7 (diff) | |
download | fork-ledger-a4d4f9979486eb82c05bd032e1452c2fd400249f.tar.gz fork-ledger-a4d4f9979486eb82c05bd032e1452c2fd400249f.tar.bz2 fork-ledger-a4d4f9979486eb82c05bd032e1452c2fd400249f.zip |
amount_t::print and value_t::print now use flags
Diffstat (limited to 'src/amount.h')
-rw-r--r-- | src/amount.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/amount.h b/src/amount.h index 49f33417..faea8b8e 100644 --- a/src/amount.h +++ b/src/amount.h @@ -677,7 +677,13 @@ public: true, the full internal precision of the amount is displayed, regardless of its commodity's display precision. */ - void print(std::ostream& out) const; +#define AMOUNT_PRINT_NO_FLAGS 0x00 +#define AMOUNT_PRINT_RIGHT_JUSTIFY 0x01 +#define AMOUNT_PRINT_COLORIZE 0x02 +#define AMOUNT_PRINT_NO_COMPUTED_ANNOTATIONS 0x04 + + void print(std::ostream& out, + const uint_least8_t flags = AMOUNT_PRINT_NO_FLAGS) const; /*@}*/ |