diff options
author | John Wiegley <johnw@newartisans.com> | 2009-02-19 22:36:08 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-02-19 22:36:08 -0400 |
commit | f2f52066d2a9c82619ffea0f3972e48417a90b5b (patch) | |
tree | 3390b046e383309c4845be29dcf1d44c258c6d56 /src/account.h | |
parent | 2694335e54316606ab169e957034ba71e8274144 (diff) | |
download | fork-ledger-f2f52066d2a9c82619ffea0f3972e48417a90b5b.tar.gz fork-ledger-f2f52066d2a9c82619ffea0f3972e48417a90b5b.tar.bz2 fork-ledger-f2f52066d2a9c82619ffea0f3972e48417a90b5b.zip |
Added a --strict session option
When enabled, if any accounts or commodities are seen in an uncleared
transaction, which were not seen previously in a cleared or pending
transaction or a textual directive dealing with accounts or commodities,
a warning is generated about the unknown item.
Diffstat (limited to 'src/account.h')
-rw-r--r-- | src/account.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/account.h b/src/account.h index f9fd2f52..8b485ec2 100644 --- a/src/account.h +++ b/src/account.h @@ -69,6 +69,7 @@ class account_t : public scope_t optional<string> note; unsigned short depth; accounts_map accounts; + bool known; mutable void * data; mutable string _fullname; @@ -77,7 +78,8 @@ class account_t : public scope_t const string& _name = "", const optional<string>& _note = none) : scope_t(), parent(_parent), name(_name), note(_note), - depth(parent ? parent->depth + 1 : 0), data(NULL) { + depth(parent ? parent->depth + 1 : 0), + known(false), data(NULL) { TRACE_CTOR(account_t, "account_t *, const string&, const string&"); } account_t(const account_t& other) @@ -87,6 +89,7 @@ class account_t : public scope_t note(other.note), depth(other.depth), accounts(other.accounts), + known(other.known), data(NULL) { TRACE_CTOR(account_t, "copy"); assert(other.data == NULL); |