summaryrefslogtreecommitdiff
path: root/src/timelog.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2010-06-12 15:42:02 -0400
committerJohn Wiegley <johnw@newartisans.com>2010-06-12 15:43:00 -0400
commitb1b4e2aadff5983d443d70c09ea86a41b015873f (patch)
tree2c40305c9f9841a4c3d453a4a5c49ec69056b4b2 /src/timelog.h
parent0555e7f61ef14ec667f8ba611e60fd96133a9676 (diff)
downloadfork-ledger-b1b4e2aadff5983d443d70c09ea86a41b015873f.tar.gz
fork-ledger-b1b4e2aadff5983d443d70c09ea86a41b015873f.tar.bz2
fork-ledger-b1b4e2aadff5983d443d70c09ea86a41b015873f.zip
Add support for typed metadata
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'
Diffstat (limited to 'src/timelog.h')
-rw-r--r--src/timelog.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/timelog.h b/src/timelog.h
index 79629408..92b80edc 100644
--- a/src/timelog.h
+++ b/src/timelog.h
@@ -87,10 +87,12 @@ class time_log_t
{
std::list<time_xact_t> time_xacts;
journal_t& journal;
+ scope_t& scope;
public:
- time_log_t(journal_t& _journal) : journal(_journal) {
- TRACE_CTOR(time_log_t, "journal_t&");
+ time_log_t(journal_t& _journal, scope_t& _scope)
+ : journal(_journal), scope(_scope) {
+ TRACE_CTOR(time_log_t, "journal_t&, scope_t&");
}
~time_log_t();