summaryrefslogtreecommitdiff
path: root/src/account.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-02-08 23:28:30 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-02-08 23:28:30 -0400
commitf50def86c4a1203837a8f97066d9d4dfd268e0f1 (patch)
treec717ba4efb0ba09113111e1c45f45e770e5b17b9 /src/account.h
parent57d98ac1207241c32ee19c71b4d621c313697bce (diff)
downloadfork-ledger-f50def86c4a1203837a8f97066d9d4dfd268e0f1.tar.gz
fork-ledger-f50def86c4a1203837a8f97066d9d4dfd268e0f1.tar.bz2
fork-ledger-f50def86c4a1203837a8f97066d9d4dfd268e0f1.zip
Moved get_partial_name from format.cc into account_t, where it belongs.
Diffstat (limited to 'src/account.h')
-rw-r--r--src/account.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/account.h b/src/account.h
index 2cf8192a..18792154 100644
--- a/src/account.h
+++ b/src/account.h
@@ -97,6 +97,7 @@ class account_t : public scope_t
return fullname();
}
string fullname() const;
+ string partial_name() const;
void add_account(account_t * acct) {
accounts.insert(accounts_map::value_type(acct->name, acct));
@@ -172,6 +173,10 @@ class account_t : public scope_t
xdata_ = xdata_t();
return *xdata_;
}
+ const xdata_t& xdata() const {
+ assert(xdata_);
+ return *xdata_;
+ }
void calculate_sums(expr_t& amount_expr, scope_t& scope);
};