summaryrefslogtreecommitdiff
path: root/src/session.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2010-06-12 21:31:55 -0400
committerJohn Wiegley <johnw@newartisans.com>2010-06-13 01:03:47 -0400
commit15bf3ed39ed24bc55abc624757a1a943ebabb085 (patch)
tree5d2cc4212554f22696ae123e9cd7ab195af2ad66 /src/session.h
parent9effdb3aa2bfcad9dc391cbe5a15b9f563505b00 (diff)
downloadfork-ledger-15bf3ed39ed24bc55abc624757a1a943ebabb085.tar.gz
fork-ledger-15bf3ed39ed24bc55abc624757a1a943ebabb085.tar.bz2
fork-ledger-15bf3ed39ed24bc55abc624757a1a943ebabb085.zip
account(NAME) function can lookup account objects
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.
Diffstat (limited to 'src/session.h')
-rw-r--r--src/session.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/session.h b/src/session.h
index 4968f1b8..5130e3fb 100644
--- a/src/session.h
+++ b/src/session.h
@@ -75,6 +75,8 @@ public:
void read_journal_files();
void close_journal_files();
+ value_t fn_account(call_scope_t& scope);
+
void report_options(std::ostream& out)
{
HANDLER(cache_).report(out);