summaryrefslogtreecommitdiff
path: root/src/value.h
Commit message (Collapse)AuthorAgeFilesLines
* A further simplification of -V and -XJohn Wiegley2010-06-071-2/+1
| | | | | | | | With -X COMM, all values are computed in terms of COMM, regardless. With -V, only secondary commodities will ever be computed, never primaries. Further, if a secondary commodities has an associated price, the valuation is done in terms of that price's commodity.
* amount_t::print and value_t::print now use flagsJohn Wiegley2010-06-071-5/+5
|
* Value expression sequences are now comparableJohn Wiegley2010-06-051-2/+0
| | | | Fixes #228 / ED9388D7-E523-40EB-841B-9AE9BAA70329
* Allow expr_t& to be passed in a value_tJohn Wiegley2010-05-081-2/+27
|
* Rewrite the "print" command as a custom functionJohn Wiegley2010-03-081-5/+5
| | | | | There ended up being too many corner cases for the generalized formatter to handle.
* Updated copyrights to 2003-2010John Wiegley2010-03-051-1/+1
|
* Many improvements to Ledger's Python bindingsJohn Wiegley2009-11-191-1/+1
|
* Added floored() and in_place_floor() methodsJohn Wiegley2009-11-111-0/+7
|
* account.amount and .total return simplified valuesJohn Wiegley2009-11-101-0/+2
|
* Added basic foundation for XML reportingJohn Wiegley2009-11-091-0/+2
|
* Redesigned the expr_t, predicate_t, query_t classesJohn Wiegley2009-11-091-0/+4
|
* Report sought magnitude when balancing errors occurJohn Wiegley2009-11-051-0/+2
|
* Added value_t::push_frontJohn Wiegley2009-11-041-1/+9
|
* Whitespace fixJohn Wiegley2009-11-041-2/+2
|
* Completed Python bindings for value_tJohn Wiegley2009-11-021-2/+1
|
* Added serialization methods for most typeJohn Wiegley2009-10-301-0/+28
| | | | | This allows journal_t objects to be completed serialized to disk and deserialized.
* Change the value_t::POINTER type to value_t::SCOPEJohn Wiegley2009-10-301-47/+17
| | | | | scope_t pointers are the only kind that are ever stored in value objects, so there was no need to make it generic and use boost::any.
* Pushing null values into a sequence is legitimateJohn Wiegley2009-10-281-14/+6
|
* Removed unnused parameter to value_t::printJohn Wiegley2009-10-271-2/+1
|
* Added some extra storage checks to value_tJohn Wiegley2009-10-251-0/+5
|
* Rewrote the way date and time I/O is managedJohn Wiegley2009-10-251-1/+1
|
* Fixed many compiler warnings from g++ 4.4John Wiegley2009-10-251-2/+3
|
* Restored --price option, added baseline testJohn Wiegley2009-06-261-0/+2
| | | | | | | This option reports only in terms of the annotated price of the commodities involved, otherwise it reports the amounts themselves. It can be used in conjunction with other reports, as it applies to the displayed amounts, not the actual amounts being calculated.
* The -X option now accepts price settingsJohn Wiegley2009-06-181-0/+4
| | | | | | | For example, if you had 100 AU (onces of gold) and wanted to report it in dollars, but at a price of $997 per ounce, you could now easily say: ledger bal -X '$,AU=$997'
* Move amount colorization deeper into the coreJohn Wiegley2009-06-161-0/+1
| | | | | | | | This is necessary in order to redden negative amounts correctly under all circumstances, such as component amounts of a multi-commodity balance. Fixes 727B2DF8-A2A1-4716-9C15-547F20D5F933
* Added a value_t macro: VALUE_OR_VEROJohn Wiegley2009-03-051-0/+2
|
* Reduced the #include dependency tree to a minimumJohn Wiegley2009-03-041-1/+1
|
* Changed many assert() calls to VERIFY()John Wiegley2009-03-041-38/+36
|
* Gave round/unround/truncate all in_place_ variantsJohn Wiegley2009-02-271-3/+20
|
* Added a truncated() method for amounts and valuesJohn Wiegley2009-02-261-0/+1
| | | | | When an amount is truncated, it drops all of the extra precision and becomes exactly the value would have seen were it printed.
* Marked all strings needing internationalizationJohn Wiegley2009-02-251-12/+12
| | | | | | | | | | | | | | | | These strings are now collected automagically in the file po/ledger.pot. If you'd like to produce a translation, just run this command after building Ledger: msginit -l LOCALE -o LANG.po -i po/ledger.pot Where LOCALE is a string like de or en_GB, and LANG is a short descriptive word for your language. Then send me this .po file so I can commit it to the Ledger sources (alternatively, you could maintain the file in a fork on GitHub), and setup the build script to format and install your new message catalog during a "make install".
* Fixed an alignment bug in value context displayJohn Wiegley2009-02-241-3/+1
|
* Added non-const value_t::begin and value_t::endJohn Wiegley2009-02-231-0/+12
|
* Push a sequence onto a sequence only appends nowJohn Wiegley2009-02-231-8/+1
| | | | Previously, it would merge sequences A and B.
* Added --exchange (-x) optionJohn Wiegley2009-02-221-2/+3
| | | | | | | This is like -V, except it lets you specify the goal commodity to report in terms of, for example: reg -x CAD
* Fixed the way values are justified for printingJohn Wiegley2009-02-221-3/+4
|
* Fixed a memory leak in value_t::storage_tJohn Wiegley2009-02-211-12/+16
|
* Restored the --budget optionJohn Wiegley2009-02-201-2/+2
|
* Moved amount_t::right_justify to simply ::justifyJohn Wiegley2009-02-191-2/+2
|
* Changed some value_t method namesJohn Wiegley2009-02-161-2/+2
| | | | | | | - simplify -> simplified - cast -> casted This is to differentiate them from in_place_cast and in_place_simplify.
* Removed "total_cost" valexpr, and value_t::costJohn Wiegley2009-02-151-2/+0
| | | | | Since cost reports are now calculated by setting the amount_ expression, there is no need to track a separate "total cost" entity.
* Renamed a function to sort_value_is_less_thanJohn Wiegley2009-02-121-2/+2
| | | | | The purpose was to provided a clearer relationship between the function name and its expected arguments.
* Sorting expr now uses "-" to indicate descendingJohn Wiegley2009-02-121-0/+11
| | | | | For example: -S payee,-date sorts 1) ascending by payee, then 2) descending by date.
* Made (un)reduce rvalue methods more consistentJohn Wiegley2009-02-121-2/+2
| | | | | | They names were changed from reduce/unreduce to reduced/unreduced, since they return the modified value. This is more consistent with the naming of rounded/rounded.
* Added validation code for mask_t objects.John Wiegley2009-02-121-0/+2
|
* Moved value_t::set_type into value.cc, since it had grown.John Wiegley2009-02-121-18/+1
|
* Inlined value_t::_clear(), since it only had one caller.John Wiegley2009-02-121-17/+9
|
* A fix to the last fix.John Wiegley2009-02-101-1/+0
|
* A fix for users of Boost 1.35.John Wiegley2009-02-101-2/+17
|
* Changed value_t to use boost::any (more type-safe).John Wiegley2009-02-101-75/+80
|