From 75b7294a6db10e7f7b18b6aeef1aa0f568124a1d Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Sun, 7 Mar 2010 22:47:07 -0500 Subject: Rewrite the "print" command as a custom function There ended up being too many corner cases for the generalized formatter to handle. --- src/item.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/item.h') diff --git a/src/item.h b/src/item.h index 4cca9de4..f82e8da6 100644 --- a/src/item.h +++ b/src/item.h @@ -106,7 +106,8 @@ public: enum state_t { UNCLEARED = 0, CLEARED, PENDING }; - typedef std::map > string_map; + typedef std::pair, bool> tag_data_t; + typedef std::map string_map; state_t _state; optional _date; @@ -156,8 +157,8 @@ public: 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 string_map::iterator set_tag(const string& tag, + const optional& value = none); virtual void parse_tags(const char * p, optional current_year = none); -- cgit v1.2.3