summaryrefslogtreecommitdiff
path: root/src/item.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2010-06-18 02:19:39 -0400
committerJohn Wiegley <johnw@newartisans.com>2010-06-18 02:19:39 -0400
commitb80be82b8d4a3aaf226b00e7c12520318346ccea (patch)
tree54e77b05f0e732fe272e67b1aa0efea91797f145 /src/item.h
parent5f989f7d9f6f41df90b2272dfcc7c4332f12cfcb (diff)
downloadfork-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.h')
-rw-r--r--src/item.h18
1 files changed, 11 insertions, 7 deletions
diff --git a/src/item.h b/src/item.h
index 8018db9a..b7dde35f 100644
--- a/src/item.h
+++ b/src/item.h
@@ -149,13 +149,17 @@ public:
return ! (*this == xact);
}
- virtual bool has_tag(const string& tag) const;
- virtual bool has_tag(const mask_t& tag_mask,
- const optional<mask_t>& value_mask = none) const;
-
- virtual optional<value_t> get_tag(const string& tag) const;
- virtual optional<value_t> get_tag(const mask_t& tag_mask,
- const optional<mask_t>& value_mask = none) const;
+ virtual bool has_tag(const string& tag,
+ bool inherit = true) const;
+ virtual bool has_tag(const mask_t& tag_mask,
+ const optional<mask_t>& value_mask = none,
+ bool inherit = true) const;
+
+ virtual optional<value_t> get_tag(const string& tag,
+ bool inherit = true) const;
+ virtual optional<value_t> get_tag(const mask_t& tag_mask,
+ const optional<mask_t>& value_mask = none,
+ bool inherit = true) const;
virtual string_map::iterator
set_tag(const string& tag,