From 28c65cda512135bde36542351533941b019b6ee8 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Sat, 12 Jun 2010 14:55:18 -0400 Subject: Store metadata values as value_t instead of string --- src/item.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/item.h') diff --git a/src/item.h b/src/item.h index 25130d6d..61438593 100644 --- a/src/item.h +++ b/src/item.h @@ -106,8 +106,8 @@ public: enum state_t { UNCLEARED = 0, CLEARED, PENDING }; - typedef std::pair, bool> tag_data_t; - typedef std::map string_map; + typedef std::pair, bool> tag_data_t; + typedef std::map string_map; state_t _state; optional _date; @@ -153,14 +153,14 @@ public: 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 optional get_tag(const string& tag) const; + virtual optional get_tag(const mask_t& tag_mask, + const optional& value_mask = none) const; virtual string_map::iterator - set_tag(const string& tag, - const optional& value = none, - const bool overwrite_existing = true); + set_tag(const string& tag, + const optional& value = none, + const bool overwrite_existing = true); virtual void parse_tags(const char * p, bool overwrite_existing = true, optional current_year = none); -- cgit v1.2.3