summaryrefslogtreecommitdiff
path: root/session.cc
Commit message (Collapse)AuthorAgeFilesLines
* Rearranged the code a bit, breaking walk.cc into several different files:John Wiegley2008-08-031-4/+43
| | | | | | | | | | 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/+6
|
* Formatting now relies exclusively on value expressions.John Wiegley2008-08-021-2/+2
| | | | | | | | | | | | | | | | | | | | 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.
* Added a new 'format' debugging command, which dissects the formattingJohn Wiegley2008-08-011-2/+2
| | | | expression in its argument.
* Change many uses of for+iterator to use Boost.Foreach.John Wiegley2008-07-311-4/+2
|
* Revised the way that exceptions are thrown around. Instead of context being aJohn Wiegley2008-07-311-2/+2
| | | | | | | 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.
* A new binary_cache_t object has been creating to manage saving and restoring aJohn Wiegley2008-07-311-1/+1
| | | | | Ledger session from a cache file. It doesn't work at all yet, though at least the major structures are in place now.
* Moved around and renamed a very large amount of code in order to rationalizeJohn Wiegley2008-07-291-7/+7
| | | | 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-4/+2
|
* Value expression architecture is now rewritten, but the functionality of theJohn Wiegley2008-07-291-15/+11
| | | | | | | 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.
* Cleaned up the value expression code a bit before undertaking the real work ofJohn Wiegley2008-07-271-2/+2
| | | | getting everything back up to what it was (plus the new code written for 3.0).
* Merge branch 'master' into v2.7aJohn Wiegley2008-07-271-0/+22
|
* 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-10/+28
| | | | fails due to the fact that 2.x value expression syntax is not restored.
* The --verify option is now working properly again. Use "--verify --verbose"John Wiegley2008-07-261-0/+2
| | | | if you wish to see memory usage statistics along with a top-level trace.
* --verify works again, but the memory totals at the end still need work.John Wiegley2008-07-261-1/+1
|
* A great deal of reorganization to restore the old parsing code (since theJohn Wiegley2008-07-221-38/+30
| | | | newer XML stuff was pulled).
* Added back the --version option, and changed acprep so that it hacks on theJohn Wiegley2008-07-211-0/+2
| | | | generated Makefile to greatly reduce unneeded verbosity.
* The new XPath parser has been integrated, although I have removed theJohn Wiegley2008-07-201-6/+1
| | | | | | | XML-related bits -- I just wanted the better infrastructure that had been created during the rewrite. It doesn't work, but it compiles and links now. This means that all of the previous 3.0 code has been moved over, although there are still snippets of code in pending/old that need to be restored.
* I have walked further along the road less compiled by...John Wiegley2008-07-201-4/+14
|
* Brought in the final round of 3.0 code, although it does not compile yet:John Wiegley2008-07-201-0/+313
report, session, parts of xpath, main, journal, option.