summaryrefslogtreecommitdiff
path: root/entry.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2008-07-29 21:05:08 -0400
committerJohn Wiegley <johnw@newartisans.com>2008-07-29 21:05:08 -0400
commit42e1d725aa9deb41396ba4c73c8499c7c3798508 (patch)
tree709aded6962addc668a127a0392aec739d74f750 /entry.h
parentea27d1b45a5ff975a1e90e3e9f4b74ff8d34056e (diff)
downloadledger-42e1d725aa9deb41396ba4c73c8499c7c3798508.tar.gz
ledger-42e1d725aa9deb41396ba4c73c8499c7c3798508.tar.bz2
ledger-42e1d725aa9deb41396ba4c73c8499c7c3798508.zip
The next value expression scheme is working, but the individual accessor
functions for each of the journal objects has yet to be ported.
Diffstat (limited to 'entry.h')
-rw-r--r--entry.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/entry.h b/entry.h
index 860fc7a5..84802b60 100644
--- a/entry.h
+++ b/entry.h
@@ -76,7 +76,7 @@ class entry_base_t
virtual bool valid() const = 0;
};
-class entry_t : public entry_base_t
+class entry_t : public entry_base_t, public scope_t
{
public:
datetime_t _date;
@@ -108,11 +108,13 @@ public:
return actual_date();
}
+ bool get_state(xact_t::state_t * state) const;
+
virtual void add_xact(xact_t * xact);
- virtual bool valid() const;
+ virtual expr_t::ptr_op_t lookup(const string& name);
- bool get_state(xact_t::state_t * state) const;
+ virtual bool valid() const;
};
struct entry_finalizer_t {