From ee5e0600aaa63859b9452d981ea9dd29b581b216 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Sat, 14 Feb 2009 05:37:53 -0400 Subject: xact metadata searches get passed up to the entry That is, if a metadata tag cannot be found in a transaction, look in the parent entry to see if it was set there. Transactions "inherit" notational details from their entries. --- src/item.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/item.h') diff --git a/src/item.h b/src/item.h index 9621b541..96e0899b 100644 --- a/src/item.h +++ b/src/item.h @@ -120,9 +120,16 @@ public: } virtual bool has_tag(const string& tag) const; + virtual bool has_tag(const mask_t& tag_mask, + const optional& value_mask = none) const; + virtual optional get_tag(const string& tag) const; + virtual optional get_tag(const mask_t& tag_mask, + const optional& value_mask = none) const; + virtual void set_tag(const string& tag, const optional& value = none); + virtual void parse_tags(const char * p, int current_year = -1); virtual void append_note(const char * p, int current_year = -1); -- cgit v1.2.3