comparison Core/EnumerationDictionary.h @ 1103:bec1eccf976c

Hot restart of Orthanc
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 07 Aug 2014 11:33:46 +0200
parents ce6386b37afd
children 6e7e5ed91c2d
comparison
equal deleted inserted replaced
1102:ce6386b37afd 1103:bec1eccf976c
52 52
53 EnumerationToString enumerationToString_; 53 EnumerationToString enumerationToString_;
54 StringToEnumeration stringToEnumeration_; 54 StringToEnumeration stringToEnumeration_;
55 55
56 public: 56 public:
57 void Clear()
58 {
59 enumerationToString_.clear();
60 stringToEnumeration_.clear();
61 }
62
57 void Add(Enumeration value, const std::string& str) 63 void Add(Enumeration value, const std::string& str)
58 { 64 {
59 // Check if these values are free 65 // Check if these values are free
60 if (enumerationToString_.find(value) != enumerationToString_.end() || 66 if (enumerationToString_.find(value) != enumerationToString_.end() ||
61 stringToEnumeration_.find(str) != stringToEnumeration_.end() || 67 stringToEnumeration_.find(str) != stringToEnumeration_.end() ||