summaryrefslogtreecommitdiff
path: root/src/value.cc
Commit message (Collapse)AuthorAgeFilesLines
* value_t::print uses an output buffer nowJohn Wiegley2011-07-171-1/+5
| | | | This is so that it plays nicely with straccstream.
* Correct argument order for several exceptionsJohn Wiegley2011-07-171-9/+9
|
* Balances and sequences can be compared to amountsJohn Wiegley2010-06-221-16/+4
|
* For value_t, use boost::any to refer to objectsJohn Wiegley2010-06-131-25/+20
|
* Moved value_t::label() to value.ccJohn Wiegley2010-06-131-0/+39
|
* Improved support for value_t::in_place* functionsJohn Wiegley2010-06-131-36/+26
|
* Untabified all source filesJohn Wiegley2010-06-111-180/+180
|
* Use ptr_deque for value_t::sequence_tJohn Wiegley2010-06-101-3/+3
| | | | | | | | | This is to work around undefined behavior according to the Standard, [lib.res.on.functions]/2: "In particular, the effects are undefined in the following cases: [..] - if an incomplete type (3.9) is used as a template argument when instantiating a template component."
* Errors involving value objects provide more contextJohn Wiegley2010-06-101-9/+40
|
* In value_t::print, pass along display flagsJohn Wiegley2010-06-091-1/+1
|
* A further simplification of -V and -XJohn Wiegley2010-06-071-5/+4
| | | | | | | | 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-16/+14
|
* Value expression sequences are now comparableJohn Wiegley2010-06-051-0/+28
| | | | Fixes #228 / ED9388D7-E523-40EB-841B-9AE9BAA70329
* Allow null values to be cast to int and stringJohn Wiegley2010-05-301-0/+19
|
* Comparison of boolean values is now allowedJohn Wiegley2010-05-301-0/+33
| | | | true > false
* Corrected error message text to be consistentJohn Wiegley2010-05-301-1/+1
|
* Allow expr_t& to be passed in a value_tJohn Wiegley2010-05-081-1/+30
|
* Corrected a case for value < valueJohn Wiegley2010-03-061-1/+3
|
* Change an exception test to a plain ifJohn Wiegley2010-03-051-4/+2
|
* Updated copyrights to 2003-2010John Wiegley2010-03-051-1/+1
|
* Refactored some comparison helper classesJohn Wiegley2010-02-051-1/+1
|
* The Python web server now uses jQuery TablesorterJohn Wiegley2009-11-211-5/+12
|
* Many improvements to Ledger's Python bindingsJohn Wiegley2009-11-191-3/+4
|
* Allow ! and - operators on sequence valuesJohn Wiegley2009-11-181-0/+14
|
* Fixed several time and date duration type usesJohn Wiegley2009-11-171-8/+14
|
* Optimization in the formatting of string valuesJohn Wiegley2009-11-141-1/+4
|
* Stylistic change: assert(0) -> assert(false)John Wiegley2009-11-131-1/+1
|
* Added --date, similar to --account and --payeeJohn Wiegley2009-11-111-0/+6
| | | | | | | This lets you do things like store a date as the value of a tag, then run: ledger --date='has_tag("Foo") ? to_date(tag("Foo")) : date' reg
* Added floored() and in_place_floor() methodsJohn Wiegley2009-11-111-0/+25
|
* Moving the #include of unistring.h into format.hJohn Wiegley2009-11-101-1/+1
|
* XML reporting now works via the "xml" commandJohn Wiegley2009-11-091-9/+8
|
* Added basic foundation for XML reportingJohn Wiegley2009-11-091-0/+54
|
* Report sought magnitude when balancing errors occurJohn Wiegley2009-11-051-0/+29
|
* Added missing call to _dup() in value_t::in_place_castJohn Wiegley2009-11-051-0/+2
|
* Change the value_t::POINTER type to value_t::SCOPEJohn Wiegley2009-10-301-11/+11
| | | | | 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.
* Removed unnused parameter to value_t::printJohn Wiegley2009-10-271-16/+8
|
* Fixed a display issue with the balance reportJohn Wiegley2009-10-271-5/+5
|
* Fixed an error with post-simplified mathJohn Wiegley2009-10-271-1/+12
|
* If doing math between amount and balance, simplifyJohn Wiegley2009-10-271-3/+25
|
* Fixed some debug codeJohn Wiegley2009-10-271-3/+3
|
* Allow any amount to be multipled by anotherJohn Wiegley2009-10-271-7/+2
| | | | | The result carries the commodity of the first amount, or the second if the first had no commodity.
* Added debug codeJohn Wiegley2009-10-271-0/+3
|
* Rewrote the way date and time I/O is managedJohn Wiegley2009-10-251-8/+9
|
* Fixed many compiler warnings from g++ 4.4John Wiegley2009-10-251-0/+11
|
* value_t::dump now faithfully represents stringsJohn Wiegley2009-06-281-1/+15
|
* Restored --price option, added baseline testJohn Wiegley2009-06-261-0/+12
| | | | | | | 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.
* Split commodity.h/cc into three filesJohn Wiegley2009-06-241-1/+3
| | | | | | commodity.h - code for commodity_t annotate.h - commodity annotations pool.h - commodity pool management
* value_t::in_place_unround wasn't doing it in-placeJohn Wiegley2009-06-211-2/+2
|
* The -X option now accepts price settingsJohn Wiegley2009-06-181-0/+21
| | | | | | | 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-7/+13
| | | | | | | | 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