comparison Core/EnumerationDictionary.h @ 1772:53e045b5a8ec

MIME content type can be associated to custom attachments (cf. "UserContentType")
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 12 Nov 2015 14:36:27 +0100
parents 6e7e5ed91c2d
children b1291df2f780
comparison
equal deleted inserted replaced
1771:8790488ae98b 1772:53e045b5a8ec
58 { 58 {
59 enumerationToString_.clear(); 59 enumerationToString_.clear();
60 stringToEnumeration_.clear(); 60 stringToEnumeration_.clear();
61 } 61 }
62 62
63 bool Contains(Enumeration value) const
64 {
65 return enumerationToString_.find(value) != enumerationToString_.end();
66 }
67
63 void Add(Enumeration value, const std::string& str) 68 void Add(Enumeration value, const std::string& str)
64 { 69 {
65 // Check if these values are free 70 // Check if these values are free
66 if (enumerationToString_.find(value) != enumerationToString_.end() || 71 if (enumerationToString_.find(value) != enumerationToString_.end() ||
67 stringToEnumeration_.find(str) != stringToEnumeration_.end() || 72 stringToEnumeration_.find(str) != stringToEnumeration_.end() ||