diff options
author | John Wiegley <johnw@newartisans.com> | 2010-06-18 02:19:39 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2010-06-18 02:19:39 -0400 |
commit | b80be82b8d4a3aaf226b00e7c12520318346ccea (patch) | |
tree | 54e77b05f0e732fe272e67b1aa0efea91797f145 /src/item.cc | |
parent | 5f989f7d9f6f41df90b2272dfcc7c4332f12cfcb (diff) | |
download | fork-ledger-b80be82b8d4a3aaf226b00e7c12520318346ccea.tar.gz fork-ledger-b80be82b8d4a3aaf226b00e7c12520318346ccea.tar.bz2 fork-ledger-b80be82b8d4a3aaf226b00e7c12520318346ccea.zip |
has_tag and get_tag now take an 'inherit' parameter
Diffstat (limited to 'src/item.cc')
-rw-r--r-- | src/item.cc | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/item.cc b/src/item.cc index 4e9c7702..3845e4cb 100644 --- a/src/item.cc +++ b/src/item.cc @@ -37,7 +37,7 @@ namespace ledger { bool item_t::use_effective_date = false; -bool item_t::has_tag(const string& tag) const +bool item_t::has_tag(const string& tag, bool) const { DEBUG("item.meta", "Checking if item has tag: " << tag); if (! metadata) { @@ -57,7 +57,7 @@ bool item_t::has_tag(const string& tag) const } bool item_t::has_tag(const mask_t& tag_mask, - const optional<mask_t>& value_mask) const + const optional<mask_t>& value_mask, bool) const { if (metadata) { foreach (const string_map::value_type& data, *metadata) { @@ -72,7 +72,7 @@ bool item_t::has_tag(const mask_t& tag_mask, return false; } -optional<value_t> item_t::get_tag(const string& tag) const + optional<value_t> item_t::get_tag(const string& tag, bool) const { DEBUG("item.meta", "Getting item tag: " << tag); if (metadata) { @@ -87,7 +87,8 @@ optional<value_t> item_t::get_tag(const string& tag) const } optional<value_t> item_t::get_tag(const mask_t& tag_mask, - const optional<mask_t>& value_mask) const + const optional<mask_t>& value_mask, + bool) const { if (metadata) { foreach (const string_map::value_type& data, *metadata) { |