summaryrefslogtreecommitdiff
path: root/report.cc
Commit message (Collapse)AuthorAgeFilesLines
* Moved around most of the files so that source code is in src/, documentationJohn Wiegley2008-08-051-432/+0
| | | | is in doc/, etc.
* Rearranged some of the options code, enabled -t and -T.John Wiegley2008-08-051-17/+18
|
* Moved the option code for 2.6.1 from option.cc into report.h. It's stillJohn Wiegley2008-08-051-4/+0
| | | | commented out, but now it's nearer the right place for conversion.
* First round of work to get the balance report working again.John Wiegley2008-08-041-19/+1
|
* Regular expressions are working again, such that very basic register reportsJohn Wiegley2008-08-031-105/+18
| | | | are now possible.
* Got pre-compiled headers working again, which are used if --devel is passed toJohn Wiegley2008-08-031-0/+22
| | | | acprep.
* Rearranged the code a bit, breaking walk.cc into several different files:John Wiegley2008-08-031-290/+5
| | | | | | | | | | compare compare_items<T> handler item_handler<T> iterators used to iterators sets of journal objects filters derived from item_handler, they morph the result set output derived from item_handler, these do the printing Also, created a new 'help' files which contains just Ledger's help text.
* Got date, payee and accounts back into the register report.John Wiegley2008-08-031-0/+10
|
* Re-enabled almost all of the old reporting code, which means it compiles nowJohn Wiegley2008-08-021-171/+246
| | | | within the new scheme.
* Moved xact_xdata_t into xact_t itself, as a set of "extended data" that mightJohn Wiegley2008-08-021-4/+4
| | | | | | | | be gathered during reporting. Removed the references to accounts and such from the mask logic, which means that the value expression "acount =~ /foo/" is needed in place of just "/foo/".
* Formatting now relies exclusively on value expressions.John Wiegley2008-08-021-5/+5
| | | | | | | | | | | | | | | | | | | | What this means is that the utility code, basic math, value expressions, string formatting and option handling are now entirely decoupled from the rest of the code. This decoupling not only greatly simplifies the more basic parts of Ledger, but makes it much easier to test and verify its completeness. For example, when the formatting code %X is seen by the format parser, it turns into a call to the expression function fmt_X, which must be defined when the format string is first compiled against an object. If that object is a transaction, the transaction's scope will be the first to have a chance at providing a definition. If an account is being reported, it will. If neither does, the next scope in sequence -- soon to be the current report -- will, and then the session object that "owns" the current Ledger session. In 2.6, the formatting code new everything about transaction and accounts, and relied on flags to communicate special details between them. Now the transaction will offer the details for its own reporting, while the formatter worries only about strings and how to output them.
* Journal data structures now use date_t instead of datetime_t.John Wiegley2008-08-011-3/+3
| | | | | | | | This means transactions can only have day-level granularity -- which has always been the case from an data file point of view. The advantage to this restriction is that reports will now be immune from daylight savings related bugs, where a transaction falls to the wrong side of a --monthly report, for example.
* Added a new 'format' debugging command, which dissects the formattingJohn Wiegley2008-08-011-2/+2
| | | | expression in its argument.
* Simplified the format_t code so that it no longer references any particularsJohn Wiegley2008-08-011-0/+259
| | | | about journal objects. This is all done through value expressions now.
* Revised the way that exceptions are thrown around. Instead of context being aJohn Wiegley2008-07-311-1/+1
| | | | | | | complicated string of pointers, it's now just a global block of text that gets appended to as the error is being thrown up, and can be displayed at the catch point if desired. There are almost no cases where a thrown exception will not result in an error message being displayed to the user.
* Moved around and renamed a very large amount of code in order to rationalizeJohn Wiegley2008-07-291-70/+70
| | | | the way that value expressions extract information from journal objects.
* Changed the way scopes are structured for an upcoming design change.John Wiegley2008-07-291-1/+1
|
* Value expression architecture is now rewritten, but the functionality of theJohn Wiegley2008-07-291-6/+6
| | | | | | | old system (for example, the meaning of 'a') has yet to be restored. In the new scheme, this will be done by definition a function outside of the value expression logic, rather than the tight coupling between journal innards and value expressions that occurred in 2.x.
* Merge branch 'master' into v2.7aJohn Wiegley2008-07-271-24/+4
|\
* | Updated all copyright messages to 2003-2008.John Wiegley2008-07-271-1/+1
| |
* | A large body of work to get the register report printing again, but stillJohn Wiegley2008-07-271-6/+258
| | | | | | | | fails due to the fact that 2.x value expression syntax is not restored.
* | --verify works again, but the memory totals at the end still need work.John Wiegley2008-07-261-5/+0
| |
* | Parsing now works again. And there was much rejoicing.John Wiegley2008-07-241-1/+1
| |
* | Added the var_t helper class, which can be seen in the beginningJohn Wiegley2008-07-211-1/+1
| | | | | | | | implementation of register_command in main.cc.
* | Brought in the final round of 3.0 code, although it does not compile yet:John Wiegley2008-07-201-376/+195
| | | | | | | | report, session, parts of xpath, main, journal, option.
* | The code is compiling again, but it's far from being able to run yet.John Wiegley2008-05-081-26/+26
|/
* Added elision styles.John Wiegley2008-04-131-1/+1
|
* Reworked the way date/times are handled.John Wiegley2008-04-131-5/+4
|
* Added a new script that enables use of Ledger as a smart "du".John Wiegley2008-04-131-0/+414