summaryrefslogtreecommitdiff
path: root/src/item.h
Commit message (Collapse)AuthorAgeFilesLines
* Added has_date() method to item_tJohn Wiegley2010-06-221-0/+4
|
* has_tag and get_tag now take an 'inherit' parameterJohn Wiegley2010-06-181-7/+11
|
* Revised how Ledger handles the "current year"John Wiegley2010-06-141-8/+6
| | | | | 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.
* Add support for typed metadataJohn Wiegley2010-06-121-4/+8
| | | | | | | | | | The metadata construct 'Key: Value' is now just a special case for 'Key:: "Value"'. Another after a :: in metadata setting is parsed as a full value expression and typed as such. For example: ; Key:: $400 + $500 ledger -l 'tag("Key") < $1000'
* Store metadata values as value_t instead of stringJohn Wiegley2010-06-121-8/+8
|
* Untabified all source filesJohn Wiegley2010-06-111-20/+20
|
* Increase item_t's flags to 16-bitJohn Wiegley2010-06-101-4/+4
|
* Tags were not being set properly on postingsJohn Wiegley2010-03-171-4/+6
|
* Rewrite the "print" command as a custom functionJohn Wiegley2010-03-081-3/+4
| | | | | There ended up being too many corner cases for the generalized formatter to handle.
* Updated copyrights to 2003-2010John Wiegley2010-03-051-1/+1
|
* Added actual_date() methods for itemsJohn Wiegley2010-02-051-0/+4
|
* Added a "seq" sequence property for all itemsJohn Wiegley2010-02-041-1/+5
| | | | | This indicates the absolute parsing order of every transaction and posting. It is 0 for generated items.
* --data shouldn't modify the underlying itemJohn Wiegley2009-11-121-6/+0
|
* 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
* Removed a bunch of empty commentsJohn Wiegley2009-11-081-9/+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)
* Whitespace fixJohn Wiegley2009-11-041-2/+2
|
* Stream out item metadata last in item_t::serializeJohn Wiegley2009-11-011-1/+1
|
* When copying an item, copy its metadataJohn Wiegley2009-11-011-0/+1
|
* Removed most #if 0 blocks and callout commentsJohn Wiegley2009-10-311-1/+0
|
* Added serialization methods for most typeJohn Wiegley2009-10-301-0/+35
| | | | | This allows journal_t objects to be completed serialized to disk and deserialized.
* Add a position_t object for tracking item positionsJohn Wiegley2009-10-301-20/+39
| | | | It is also optional, which is useful for generated items.
* Fixed a comment, and some whitespaceJohn Wiegley2009-10-301-2/+1
|
* Added a comment about a confusing bit of codeJohn Wiegley2009-10-271-0/+1
|
* Removed reliance on strptime/strftimeJohn Wiegley2009-10-111-2/+4
| | | | | | | | 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).
* Reduced the #include dependency tree to a minimumJohn Wiegley2009-03-041-1/+0
|
* The Great Renaming, Part IIJohn Wiegley2009-02-231-7/+7
| | | | | The last commit did not contain the majority of changes because of a slight mishap. This contains the real changeset.
* Added a new --raw option, for use with printJohn Wiegley2009-02-211-2/+3
|
* xact metadata searches get passed up to the entryJohn Wiegley2009-02-141-0/+7
| | | | | | That is, if a metadata tag cannot be found in a transaction, look in the parent entry to see if it was set there. Transactions "inherit" notational details from their entries.
* Fixed the use of --effective and --date-format (-y).John Wiegley2009-02-091-0/+5
|
* Improved an error message that was trying to show transaction context.John Wiegley2009-02-081-1/+1
|
* Greatly simplified the way option and command handlers are defined.John Wiegley2009-02-051-2/+0
|
* Removed all references to the old binary cache.John Wiegley2009-02-041-3/+2
|
* Largely removed all of Ledger's use of global variables, for the REPL's sake.John Wiegley2009-02-041-5/+5
|
* Simplified the textual parser, and improved metadata support.John Wiegley2009-02-041-7/+1
|
* Removed used of src_idx.John Wiegley2009-02-031-12/+6
|
* Removed some dead code.John Wiegley2009-02-031-8/+0
|
* Removed the global references to session->report.John Wiegley2009-02-031-0/+2
|
* Simplified error context handling.John Wiegley2009-02-021-9/+15
|
* Added support for metadata and tagging, and made regexs a first-class type.John Wiegley2009-02-011-0/+18
|
* Changed many uses of "unsigned long" to std::size_t.John Wiegley2009-02-011-2/+6
|
* Added documentation stubs for all include files and classes.John Wiegley2009-01-311-0/+19
|
* Increased copyright range to include 2009.John Wiegley2009-01-201-1/+1
|
* Changed some of the transaction flags, since all must fit in 8 bits.John Wiegley2008-09-191-10/+4
|
* Factored common parts of entry_t and xact_t into new item_tJohn Wiegley2008-09-191-0/+135