diff 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
line wrap: on
line diff
--- a/Core/EnumerationDictionary.h	Thu Aug 07 10:51:35 2014 +0200
+++ b/Core/EnumerationDictionary.h	Thu Aug 07 11:33:46 2014 +0200
@@ -54,6 +54,12 @@
       StringToEnumeration stringToEnumeration_;
 
     public:
+      void Clear()
+      {
+        enumerationToString_.clear();
+        stringToEnumeration_.clear();
+      }
+
       void Add(Enumeration value, const std::string& str)
       {
         // Check if these values are free