diff OrthancServer/ServerEnumerations.cpp @ 216:e5d5d4a9a326

refactored upload of dicom through http
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 29 Nov 2012 11:57:35 +0100
parents 7f4acf490179
children f23318b11b39
line wrap: on
line diff
--- a/OrthancServer/ServerEnumerations.cpp	Thu Nov 29 11:25:29 2012 +0100
+++ b/OrthancServer/ServerEnumerations.cpp	Thu Nov 29 11:57:35 2012 +0100
@@ -99,6 +99,25 @@
     }
   }
 
+  const char* ToString(StoreStatus status)
+  {
+    switch (status)
+    {
+    case StoreStatus_Success:
+      return "Success";
+
+    case StoreStatus_AlreadyStored:
+      return "AlreadyStored";
+
+    case StoreStatus_Failure:
+      return "Failure";
+
+    default:
+      throw OrthancException(ErrorCode_ParameterOutOfRange);
+    }
+  }
+
+
   const char* ToString(ChangeType type)
   {
     switch (type)