summaryrefslogtreecommitdiff
path: root/src/session.h
Commit message (Collapse)AuthorAgeFilesLines
* Added option --day-breakJohn Wiegley2012-03-171-0/+2
|
* Fixed options processing of --value-exprJohn Wiegley2012-03-091-2/+2
|
* Added --value-expr optionJohn Wiegley2012-03-091-0/+3
|
* Reworked the way that options are handledJohn Wiegley2012-03-091-11/+7
|
* Added int and str value expression functionsJohn Wiegley2012-03-091-0/+2
|
* Use unique_ptr instead of std::auto_ptrJohn Wiegley2012-03-051-2/+2
|
* Allow --options to be added by the user in PythonJohn Wiegley2012-03-011-0/+1
|
* Started writing Python unit testsJohn Wiegley2012-03-011-1/+3
|
* Refactored the notion of "the current parsing context"John Wiegley2012-03-011-0/+3
|
* Increased file copyrights to 2012John Wiegley2012-02-291-1/+1
|
* Added --check-payees optionJohn Wiegley2012-02-271-0/+2
|
* Added new account/payee/commodity directivesJohn Wiegley2012-02-271-0/+6
| | | | | Also added supporting options: --explicit, --permissive, --pedantic, as well as new behavior for --strict.
* Scopes can now provide a description of themselvesJohn Wiegley2010-06-241-0/+4
| | | | | | This isn't being used yet, but it likely will to improve the information presented to users if their value expressions fail to compile or evaluate.
* Added initial implementation of lot_*() functionsJohn Wiegley2010-06-141-0/+3
|
* Revised how Ledger handles the "current year"John Wiegley2010-06-141-2/+1
| | | | | Now when the Y directive sets the current year for a region, it affects everything, as if the clock really were set back to that year.
* Restored min() and max() virtual functionsJohn Wiegley2010-06-131-0/+2
|
* Completely reworked argument passing in expressionsJohn Wiegley2010-06-131-4/+3
|
* account(NAME) function can lookup account objectsJohn Wiegley2010-06-131-0/+2
| | | | | | For example, just the word "account" returns the name of the current posting's account, but account("Expenses:Food") returns the actual account object, so that it's total may be accessed.
* Untabified all source filesJohn Wiegley2010-06-111-3/+3
|
* A little bit of code cleanupJohn Wiegley2010-06-041-1/+0
|
* Changed --european option to --decimal-commaJohn Wiegley2010-06-011-3/+3
| | | | Fixes #211 / 1736ACA5-5DE6-4826-AEB4-DB5B2A2217AC
* Updated copyrights to 2003-2010John Wiegley2010-03-051-1/+1
|
* session_t now holds a std::auto_prt<journal_t>John Wiegley2009-11-121-3/+3
|
* Removed a bunch of empty commentsJohn Wiegley2009-11-081-9/+0
|
* Renamed --set-reported-account to just --accountJohn Wiegley2009-11-061-2/+2
| | | | | | | This fits better with the --amount and --total options, which both change the amount and total used for calculation. Same with --account: it happens after filtering, but before calculation so that balance reports look as you'd expect.
* Moved journal reading code into journal_tJohn Wiegley2009-11-051-8/+0
|
* Moved xdata clearing code into each type properJohn Wiegley2009-11-051-8/+0
|
* Segregated symbols into 5 separate namespacesJohn Wiegley2009-11-041-1/+2
| | | | | | | | | | | | | | | | | | | | | The different namespaces are: Function Value expression functions, which receive a "context" Option Command-line options Precommand Commands which are invoked before reading the journal Command Commands which are invoked after reading the journal Directive Directives that occur at column 0 in a data file This greatly eases the ability for Python uses to add intercept hooks to change how the basic Ledger module functions. An example of what should be possible soon: import ledger def my_foo_handler(value): print "--foo received:", value ledger.add_handler(ledger.Option, "foo=", my_foo_handler)
* Changed protection level of many parts of commodity_tJohn Wiegley2009-11-021-1/+1
|
* Wire up the --european optionJohn Wiegley2009-11-021-1/+5
|
* Added a --european flag, to use commas for decimalsJohn Wiegley2009-11-021-0/+2
| | | | | | Ledger can often figure this out for itself, but this flag just makes it the default behavior. It is meant to be added to one's ~/.ledgerrc file.
* Create a --cache option, for using a binary cacheJohn Wiegley2009-10-311-0/+2
|
* Moved ownership of master account into journal_tJohn Wiegley2009-10-301-6/+3
| | | | The journal_t now completely represents the data part of a session.
* Setting --date-format in ~/.ledgerrc works againJohn Wiegley2009-10-291-2/+4
|
* Rewrote the way date and time I/O is managedJohn Wiegley2009-10-251-3/+3
|
* Removed reliance on strptime/strftimeJohn Wiegley2009-10-111-1/+1
| | | | | | | | The code now uses Boost's input and output facets for times and dates. This ensures completely consistency regarding timezones and times, and fixes the regression test that was broken while I was away coding in London (where it was GMT-0 and I didn't notice the difference between local and GMT).
* Restored --download, although not done yetJohn Wiegley2009-06-241-3/+3
| | | | | | The problem at this point is that it's recording prices in the price database multiple times; it should only need to download a price for each commodity once per day.
* Restored --input-date-format optionJohn Wiegley2009-06-181-1/+6
|
* When --end is used, set a "terminus" dateJohn Wiegley2009-06-161-7/+0
| | | | | | | This means that final balance valuations (with -V or -X) will be done in terms of the date given to --end, rather than based on the current day. Fixes 647D5DB9-DBBB-47C8-80CE-F3F70E3B0253
* Added new debug option --optionsJohn Wiegley2009-06-021-3/+14
| | | | | This reports which options are in place before invoking a command, and where exactly each option value came from.
* Reduced the #include dependency tree to a minimumJohn Wiegley2009-03-041-3/+6
|
* The Great Renaming, Part IIJohn Wiegley2009-02-231-3/+3
| | | | | The last commit did not contain the majority of changes because of a slight mishap. This contains the real changeset.
* Added --exchange (-x) optionJohn Wiegley2009-02-221-0/+3
| | | | | | | This is like -V, except it lets you specify the goal commodity to report in terms of, for example: reg -x CAD
* Enabled --current optionJohn Wiegley2009-02-201-0/+4
|
* Added a --strict session optionJohn Wiegley2009-02-191-0/+1
| | | | | | | When enabled, if any accounts or commodities are seen in an uncleared transaction, which were not seen previously in a cleared or pending transaction or a textual directive dealing with accounts or commodities, a warning is generated about the unknown item.
* Fixed several unused value and param warningsJohn Wiegley2009-02-161-1/+1
|
* Split up session_t::reread_journal_files()John Wiegley2009-02-151-1/+1
| | | | | You now call session_t::close_journal_files() followed by session_t::read_journal_files().
* Added a "reload" command, for use at the REPLJohn Wiegley2009-02-131-0/+3
| | | | | | | Created a new function, session_t::reread_journal_files, which throws away all previous state data and reads in the same files again. This is needed to allow Emacs to communicate with Ledger via the REPL, so that it tell Ledger when it has made changes to the user's data file.
* If a ledger file is specified in .ledgerrc, ignore the environment.John Wiegley2009-02-081-1/+1
|
* Added support for value expression definitions.John Wiegley2009-02-081-1/+1
| | | | | | | | Example: ] expr f(x) := x + 100 ] expr f(100) 200