Mercurial > hg > orthanc
diff 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 |
line wrap: on
line diff
--- a/Core/EnumerationDictionary.h Tue Nov 10 17:18:42 2015 +0100 +++ b/Core/EnumerationDictionary.h Thu Nov 12 14:36:27 2015 +0100 @@ -60,6 +60,11 @@ stringToEnumeration_.clear(); } + bool Contains(Enumeration value) const + { + return enumerationToString_.find(value) != enumerationToString_.end(); + } + void Add(Enumeration value, const std::string& str) { // Check if these values are free